Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for dash ( - ), equals ( = ), and semicolon ( ; ) in Firefox #169

Open
zaschrim opened this issue May 1, 2017 · 1 comment

Comments

@zaschrim
Copy link

zaschrim commented May 1, 2017

No description provided.

@phun-ky
Copy link

phun-ky commented Sep 13, 2018

Would this help?

// ctrl + "=", can't listen to pure =
key('ctrl+0', function(event, handler){
  console.log(handler.shortcut, handler.scope);
});
 
// =
key('shift+0', function(event, handler){
  console.log(handler.shortcut, handler.scope);
});

// shift+;
key('shift+ctrl+,', function(event, handler){
  console.log(key.shift,handler.shortcut, handler.scope);
});

document.addEventListener('keypress', (event) => {
  // -
  if(key.isPressed(173)){
    // whatever
    console.log('whatever')
  }  
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants