The idea is for this to work for any event property. I can think of a few examples where it could be useful in custom attributes, and obviously in key and mouse events. -- Yehuda
On Fri, Jan 30, 2009 at 8:55 AM, Matt <[email protected]> wrote: > > On Jan 29, 8:24 pm, Yehuda Katz <[email protected]> wrote: > > $("p").bind("keydown[keyCode=119]", function() {}) > > Could you also just redefine 'keydown' as a plugin? > > $('p').keydown( 119, function(){} ); > or > $('p').keydown( [119,120,121], function(){} ); > or > $('p').keydown( 'enter', function(){} ); > etc. > > Matt Kruse > > > > -- 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 -~----------~----~----~----~------~----~------~--~---
