Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from dominictarr/keymaster
--- Ive moved the test for INPUT, SELECT and TEXTAREA into a property of `key`, `key.prekeydown` if the function assigned to `prekeydown` returns `false`, then keymaster ignores the key press. you can also change scope in this function, so you can have a scope the shortcuts that work inside an input. one quirk is that keys in the all scope still work when youve changed the scope. so, if you want shortcuts that do not apply inside an input, you need to assign them to a particular scope. Conflicts: keymaster.min.js
- Loading branch information
Showing
4 changed files
with
42 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters