I looked at AOL's AXS library very briefly a while ago and it does
something similar to this.  Might be worth glancing over for ideas:
http://dev.aol.com/axs (specifically axs.keyreg).


On Jan 29, 9:24 pm, Yehuda Katz <[email protected]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to