-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
to consider: Add keyboard shortcut. #21
Comments
Because Javascript could simulate keypress and click, this feature will be analyzed really careful. |
I doubt though web pages could trigger an add-on shortcut, that would be a major problem of the browser. Also WebExtensions should be separated against each other, too. What you may need is https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/commands, but it can only define static shortcuts. Adjusting them could be harder… (I also got back to static ones for now: rugk/offline-qr-code#54) |
I tried, in a naif way, to trigger the extension command with Javascript, however the browser doesn't forward the event to the add-on... This is good. Nonetheless I'd like to find some official resource, or I'd like to try some other way..
Thanks for the link, but these shortcuts needs to be associated with the click on an link. Probably adjusting isn't feasible.
I think that only an official API could be really useful: for example with dialog to allow overriding of key combinations and so on.. |
Well… you can just then trigger a JS injection and then check whether a link is selected or so. In any case I would always prefer specifying that in the JSON or so (via WebExtension commands). As you said, otherwise it may be hard to prevent websites from triggering that. A needed lib would be just for having an UI to adjust the setting and the shortcut (i.e. this here). I.e. only the settings part. |
Exactly, but for this reason I excluded this approach.
Now I understand what you meant. 👍 |
As suggested in #18 is useful to have the possibility to define custom shortcuts. For example one for dispVM and one for open-here. Obviously it is intended for redirect to less trusted VMs.
The text was updated successfully, but these errors were encountered: