I like the [.+.] notation. Would be cool to have it in 1.5. In the meantime I will look at Mark Gibson plugin.
On Jan 1, 7:27 pm, Daniel Friesen <nadir.seen.f...@gmail.com> wrote: > I believe something like "keypress[shift+e]" was proposed in one > discussion, : conflicts with namespacing. > > ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] > > > > Jeremy Chone wrote: > > Hi, > > > Any thought has been given on adding filter on event. For example > > > a) Called when enter will be pressed. > > > $("#myTextInputField").bind("keypress:enter",function(e){...}); > > > b) Called when a digit is pressed. > > > $("#myTextInputField").bind("keypress:0-9",function(e){...}); > > > c) Called when mouseenter with the key shift is pressed > > > $("#myTextInputField").bind("mouseenter:shift",function(e){...}); > > > d) Called when mouseenter with the keys shift and ctrl are pressed > > > $("#myTextInputField").bind("mouseenter:shift&ctrl",function(e){...}); > > > I am not sure this would be the right notation, but it will definitely > > simplify some code and make it less error prone. > > > Jeremy, > > > -- > > > You received this message because you are subscribed to the Google Groups > > "jQuery Development" group. > > To post to this group, send email to jquery-...@googlegroups.com. > > To unsubscribe from this group, send email to > > jquery-dev+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/jquery-dev?hl=en. -- You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-...@googlegroups.com. To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en.