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

ctrl+s doesn't work any more #64

Closed xwartz closed 9 years ago

xwartz commented 9 years ago
{
      "keys": "meta s",
      "is_exclusive": true,
      "is_ordered": true,
      "on_keydown": function(e) {
        // it don't trigger ?
        e.preventDefault();
        return false;
      },
      "on_keyup": function(e) {
       // it's ok
        e.preventDefault();
        return false;
      }
    }

when i use ctrl+s under windows , "on_keydown" function doesn't run. But it work well under mac.

solcik commented 9 years ago

Hello,

for me "meta s" is working as it should, but has some consequences with me unable to write letters "s" and "S" alone (I am not holding / was not pressing CTRL).

78

dmauro commented 9 years ago

Just tested that and it is working on OS X. I'll take a look into it on Windows, but if that's the case that is definitely unexpected behavior. Thank you for reporting!

dmauro commented 9 years ago

What browser is this? I can't reproduce the behavior in Chrome or Firefox in Windows. Could you give a full code sample as well.

xwartz commented 9 years ago

Hi, @dmauro it worked, this is my mistake. Thanks.