dmauro / Keypress

A keyboard input capturing utility in which any key can be a modifier key.
http://dmauro.github.io/Keypress/
Apache License 2.0
3.18k stars 313 forks source link

Shift + Tab not working #49

Closed anton-107 closed 10 years ago

anton-107 commented 10 years ago

Shift + Tab is not working. Tested on Mac OS X in Chrome and Firefox

dmauro commented 10 years ago

What's not working exactly? I'm not seeing a problem, could you post some code or explain what you're trying to do please?

anton-107 commented 10 years ago

@dmauro hitting shift+tab combo won't trigger mapped function execution

keyBindingsListener.register_many([{
   keys: 'shift tab'
   on_keydown: function () { ... }
}]);
cbebry commented 10 years ago

If I had to guess, this might be happening because of the browser's default action for shift+tab -- have you tried using the prevent_default option?

anton-107 commented 10 years ago

Sorry, the problem was that I binded 'tab' to a certain action, and 'shift tab' to a contrary action. And the thing was that they both triggered and did not have effect in summary in my ui.

Setting is_solitary to true for 'tab' action solved the problem