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

Function called on all events #45

Open
Jakobovski opened this issue Apr 15, 2014 · 1 comment
Open

Function called on all events #45

Jakobovski opened this issue Apr 15, 2014 · 1 comment

Comments

@Jakobovski
Copy link

The plugin is calling the callback when I press any of the following keys: CTRL, SHIFT or ALT. The plugin is not working as expected by only calling the callback when I press CTRL + L.

This is my code: jQuery(document).bind('keydown', 'ctrl+l', function(){alert("HotKey");});

@Sander-Toonen
Copy link

I have the same problem.

(Tried it on Chrome and Safari on Osx)

      $(document).bind('keydown.ctrl_f',function (evt){
        alert('Called on every keypress')
        return false;
      });

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