"input" event?

On Mar 2, 1:06 am, Fábio M. Costa <fabiomco...@gmail.com> wrote:
> Thats how i do it:
>
> $extend(Element.NativeEvents, {
>         'paste': 2, 'input': 2
>     });
>     Element.Events.paste = {
>         base : (Browser.Engine.presto || (Browser.Engine.gecko &&
> Browser.Engine.version < 19)) ? 'input' : 'paste',
>         condition: function(e){
>             this.fireEvent('paste', e, 1);
>             return false;
>         }
>     };
>
> than you can do:
>
> $('input_id').addEvent('paste', function(){
>   // your code
>
> });
>
> --
> Fábio Miranda Costa
> Solucione Sistemas
> Engenheiro de interfaces
>
>
>
>
>
>
>
> On Mon, Mar 1, 2010 at 2:04 PM, duclet <duc...@gmail.com> wrote:
> > Or if there is a way to detect if a browser supports the onPaste
> > event?
>
> > On Mar 1, 12:02 pm, duclet <duc...@gmail.com> wrote:
> > > I am wondering if there is any smart solution to have the onPaste
> > > event in all browsers using MooTools?

Reply via email to