I wonder what is your opinion on this, functionally speaking?
Would simply reacting to a key event and figuring out keys pressed
from the $event would be enough for you?
Or maybe you would like to specify key codes as a directive attribute?
Or maybe you don't care at all as a directive is easy to write and is
not needed in core?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ang...@googlegroups.com
I would like to see this as a directive that is included in the core. Also, I think I'd like to be able to specify what keycode I am looking for as an optional attribute. If it is present when called, then yes, look for that keycode, otherwise just capture the event as a whole.
digger69
unread,
Nov 29, 2012, 9:28:58 PM11/29/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ang...@googlegroups.com
IMHO, I wouldn't hold this PR for enhancing for ability to specify keycode since could get sticky if we start considering key modifiers (ctrl, alt, shift).
digger69
unread,
Dec 5, 2012, 10:16:34 AM12/5/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ang...@googlegroups.com
Today I found that angular-ui project has a Keypress directive
It allows both binding just on any keypress - or keycode-specific, including aliasing; e.g. instead of binding to "13" you can bind to "enter".
It seems pretty complete. Not sure what the best go-forward is though. I think this does fit better in the ng namespace.
ProLoser
unread,
Dec 13, 2012, 2:14:32 PM12/13/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ang...@googlegroups.com
Yeah... our UI implementation is pretty thorough, I would think it would be worthwhile to compare the two before moving forward with merging the PR. I realize ours sort of opens new floodgates (such as people asking for EVERY key to be aliased or having multiple non-modifier keys pressed simultaneously) but having keydown, keyup and keypress alone is fairly critical. You can also have multiple key combinations trigger the same function/callback/code