Once I am able to register keyboard shortcuts from the settings page I plan to implement them. The keys of the shortcuts have to be specified in the configuration of the addon, and can only be detected somewhat dynamically. It simply is not possible in the current WebExtensions options. I wanted to allow a customisable shortcut and this remains a goal. The reason they are both 3 keys is to avoid clashing with existing shortcuts in Firefox as much as possible. I didn't choose 3 key shortcuts deliberately. I've also verified the ALT+SHIFT+D shortcut working on Windows. This addon provides CTRL+SHIFT+D which I've verified works on several linux systems and the CMD equivalent on Mac. I believe that shortcut already is used by Firefox to select the address bar, it does on mine. $('select.data-list-input').Hi, this addon has never provided CTRL + K as a shortcut. I'm using doesn't give away the hidden select box to the user keep the focus on the input box so that the highlighting In my application, I wanted the full list to always be available. I originally had been using the HTML5 data-list element, but was dissatisfied with that solution since it removes options from the drop down list that don't match text typed in the box. It is based on the answer given by but I used jQuery and made a couple tweaks to it, so wanted to show a fully commented sample to help anyone else working on something similar. I found this question and discussion very helpful and wanted to show the solution I ended up with. Here's a custom solution which combines a element and element, styles them, and toggles back and forth via JavaScript Include the script from dhtmlgoodies and initialize like this: ĬreateEditableSelect()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |