ngdeleito / easyGestures

A WebExtension for Firefox providing easy to learn gestures through a highly customizable pie menu
https://addons.mozilla.org/en-US/firefox/addon/easygestures-n/
10 stars 1 forks source link

Scripts, again #15

Closed J0n1k4 closed 4 years ago

J0n1k4 commented 4 years ago

Hi,

I was looking at

https://github.com/ngdeleito/easyGestures/issues/4

and I realize that it is not so easy to implement some script. However - I thought to ask if it is even possible, so I would know weather to spend some time investigating how to accomplish it or I shouldn't even try. (I use the RMB click for opening pie menu. This way I can open the menu from track-pad as well when I am not using the mouse so there is no middle button available)

One of the things I often use is a spell check and the suggestions that FF gives if I misspell the word (it is underlined red, and in context menu there are suggestions for correction). It would be more convenient if I could have the ability to see and chose the correct word without using the other hand.

If it is possible.

Thanks again for the great add-on, cheers

FF.77.0.1. (64bit) on Win 10

ngdeleito commented 4 years ago

Hi,

I wonder if it is possible to assign the default right mouse context menu to an action within pie?

As far as I know, it is not possible, unfortunately. Events created programmatically (like the solution in https://github.com/ngdeleito/easyGestures/issues/4) generate "untrusted" events nowadays, which cannot be used to open e.g. the context menu.

If I correctly understand the rest of your question, you would like to use the same approach (generating keystroke events programmatically) to run specific actions offered by other extensions. The answer here is the same as above. I would also be interested in such a possibility, but unfortunately I haven't found any appropriate solution to it.

Hope this answers all your questions. Do not hesitate to further comment if not.

J0n1k4 commented 4 years ago

Ok, thank you for the answer. And once again - thank you for the wonderful add-on. Cheers, Nika