On Dec 16 2008, 12:23 am, "Gabriel Gilini" <[email protected]> wrote: > Since he probably has to watch a group of inputs, observing the document is > obviously the better choice. > Event propagation isn't a bad thing at all.
I think that what Matt has in mind was observing the document and use propagation in order to have key shortcuts working almost everywhere, and observing the inputs where shortcuts are not supposed to be enabled with a handler that stop propagation to the document. Both solutions seems equally elegant to me, but I am not an expert :o) Eric > > On Mon, Dec 15, 2008 at 2:08 PM, Matt Foster <[email protected]> wrote: > > > You could also listen to those events on the input, and stop their > > propagation so that the document never hears of them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
