Closed Dim-Tim-1963 closed 1 year ago
For (1), yes, that's easy. I'm going to upload a version 2.3 now with this feature.
For (2), Esc should close it already, but the other scripts will take some time to write and test.
Thanks! :)
Version 2.4 has my initial design for keyboard support:
I tested in a very simplified scenario (no container tabs or hidden tabs) since it was getting late. Let me know how it goes.
Great! I don't use container tabs, but with Tab Groups works flawlessly. Perhaps one more thing to add: close popup on ENTER (maybe optionally).
I noticed that the list doesn't scroll automatically when I arrow down, so I'll open a new issue for that.
Regarding the list staying open, you could switch over to the Options tab to see whether the box to keep it open is checked:
Yes, unchecking that option helps. But when it's checked, and I press Enter to select a tab, the tab gets focus, but now only ESC works, and Up, Down and Enter are ignored.
Yes, Firefox moves the focus into the page in the tab that was activated, so your arrows go there instead.
There probably is a way to move the focus back to the popup after the tab settles -- from the popup. I'd rather not inject scripts into pages to do that if it can be avoided. Do you want to open a new issue for that?
After the page is activated, arrow keystrokes go nowhere: Up and Down should scroll the page, but they don't. But I found out that pressing TAB "unfreezes" the list, and Up/Down/Enter act as they should again. Maybe it's a clue. And personally I am good with closing popup after pressing Enter. :)
Is it possible to 1) Add a keyboard shortcut to open popup with list? 2) Allow keyboard navigation in list (at least down, up, enter to select, esc to close)? I got used to tab groups addon, and now Ctrl-Tab is limited to active group. With keyboard navigation enabled, your addon would be a gread alternative to Ctrl-Tab. :)