-
-
Notifications
You must be signed in to change notification settings - Fork 413
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
Numberpad Keys #96
Comments
I suppose the other question is, is there a way to add extra keys without having to modify the sourcecode? Possibly using the keycode itself instead? |
Not sure if this helps, but this is the jQuery one I have been using for the last 7yrs, works fine, but i'm seeing a less and less need for jQuery so trying to move to more vanilla libraries. https://github.com/jollytoad/jquery.keys/blob/ondemand/src/keys.core.js You can see all the key definitions at the bottom of the file. |
I can use hotkeys('*', fn) for this for now.
Looks like there may be a difference between Firefox and other browsers with regards to the decimal point on the numpad, where FF defines it as 108 and other browsers define it as 110, but FF appears to do that with several other keys on the keyboard too. |
I just added Numpad keys to _modifer variable and seems to work for me. The user will have to specify both the keys while initializing the hotkey `
Usage: |
Is there anyway to define a key specific to one on the numberpad?
For instance, I would like to define a key to the asterisk on the number pad, or to the forward slash key on the numberpad, etc... that would work differently to the regular ones.
The current library I use which requires jQuery allows me to specify the numberpad ones as 'np'+key (eg. npminus, npplus, npasterisk, etc...).
The text was updated successfully, but these errors were encountered: