Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pasting text does not trigger event #3

Open
m1ket opened this issue Jan 29, 2013 · 5 comments
Open

Pasting text does not trigger event #3

m1ket opened this issue Jan 29, 2013 · 5 comments

Comments

@m1ket
Copy link

m1ket commented Jan 29, 2013

If I paste text into an input field then the typing event is not fired.

@bobdenotter
Copy link

To fix this, use the uncompressed version, and add this after the lines for 'listen to blurs', around line #78:

    // Listen to paste
    $elem.on('paste', function(event) { 
        startTyping(event, 0);
    });

@m1ket
Copy link
Author

m1ket commented Sep 10, 2013

I forked and fixed it: https://github.com/m1ket/jquery-typing/blob/master/plugin/jquery.typing-0.3.0.js#L82

I'm pretty sure I sent a Pull Request.

@bobdenotter
Copy link

I see now. Your pull-request has a few too many files, but your solution is very similar. It looks like this plugin is a bit abandoned, though. :-/

@m1ket
Copy link
Author

m1ket commented Sep 10, 2013

Yea. A good plugin though! I use it a fair bit. Really helpful for auto-complete boxes.

@360fun
Copy link

360fun commented Feb 16, 2015

I suggest to use this code, so you simulate the typing and suddenly you stop it with change, cut and paste! ;)

    // listen to different events from typing
    $elem.on("change cut paste", function(){
        // simulates typing
        startTyping(event);
        // call the stop function and fires the event immediately
        stopTyping(event, 0);
    });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants