I brought this up a while back and I think it was well-received. I'd like to
get some feedback on this proposal again before putting any work into it.
The basic idea is:
$("p").bind("keydown[keyCode=119]", function() {})
It's basically a shortcut for:
$("p").bind("keydown", function(e) { if(e.keyCode == 119) { } })
I'd imagine it'd work with other operators (>, <, !=), and use literals
(true, 119, 'string'). I'm not 100% sure yet how to implement it without
eval, but it should be doable (would probably require a simple literal
parser, but that's fine with me).
--
Yehuda Katz
Developer | Engine Yard
(ph) 718.877.1325
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---