Can register characters for keypress command, not just codes #482

Closed
wants to merge 2 commits into
from

Projects

None yet

2 participants

@dturkenk

Can register an actual character in the keypress, keyup and keydown
directives (e.g. 'a' instead of 65/97)

Handles the different values for keycodes on keyup/down and keypress
both with and without JQuery.

Tested with automated tests, IE9, latest Chrome and Firefox on Windows

Important: characters will be converted to lower-case. If you want to capture an upper-case character, use "shift-char"

dturkenk added some commits Mar 11, 2013
@dturkenk dturkenk Can register characters for keypress command, not just codes
Can register an actual character in the keypress, keyup and keydown
directives (e.g. 'a' instead of 65/97)

Handles the different values for keycodes on keyup/down and keypress
both with and without JQuery.

Tested with automated tests, IE9, latest Chrome and Firefox on Windows
7.
470f260
@dturkenk dturkenk Fixed issue with shift-char
Using a modifier key should work with the character.

IMPORTANT: characters will be converted to lower-case. If you want to
capture only an upper-case character, use shift-char.
bbaf811
@ProLoser
Member

Do you mind relocating this to https://github.com/angular-ui/ui-utils ?

@dturkenk

Will do. I'll move it it over there in the next few days.

Thanks.

@dturkenk

Partially ported this to ui-utils project.

Closing the pull request here.

@dturkenk dturkenk closed this Apr 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment