Skip to content
This repository was archived by the owner on Jan 31, 2019. It is now read-only.

Conversation

@kendroberts
Copy link

Was using keyup to know when to update the "how many characters do you
have" display. Keyup misses context menu cut/paste/undo/redo and drag &
drop changes to the textarea contents. I added input which works in
new browsers to handle all of these. keyup, cut, and paste works in
most other browser as fallback.
http://jsfiddle.net/M2qsa/222/
I had to read up on all this myself here:
http://whattheheadsaid.com/2010/09/effectively-detecting-user-input-in-javascript
(they do even more which I don't understand so don't use)

Was using keyup to know when to update the "how many characters do you
have" display.  Keyup misses context menu cut/paste/undo/redo and drag &
drop changes to the textarea contents.  I added input which workes in
new browsers to handle all of these.  keyup, cut, and paste works in
most other browser as fallback.
http://jsfiddle.net/M2qsa/222/
I had to read up on all this myself here:
http://whattheheadsaid.com/2010/09/effectively-detecting-user-input-in-javascript
(they do even more which I don't understand so don't use)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant