How to check if modifier key is pressed via API?

aristidesfl 11 years ago 0

While using the keyboard shortcuts to switch tabs, when the modifier keys used in the shortcut are released, the active tab gets added to the top of stack.

As far as I could search for, there is currently no way to check for pressed modifier keys, so it is impossible to replicate this mechanic in plugins, for example to order the tabs according to stack.

This feedback is for the implementation of any one of the following features:

- A way to monitor modifier keys

- A "keyup/keydown" even to subscribe to.

- A "tab_added_to_stack" event to subscribe to.

While any of the mentioned features would allow the creation of a plugin to order tabs according to stack, if you know another way to do it, please let me know.