Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Pressing "return", "escape", etc. keys in input causes trigger of "input" event listener in <=IE9 and Opera Classic. #3239

Closed
montgomery1944 opened this issue Jul 16, 2013 · 1 comment

Comments

@montgomery1944
Copy link

Pressing "return", "escape", etc. keys in input causes trigger of "input" event listener in <=IE9 and Opera Classic. In those browsers "input" event is not implemented or it is implemented improperly. Angular fixes it by listening to "keydown" event. Line:

if (key === 91 || (15 < key && key < 19) || (37 <= key && key <= 40)) return;

shows, that few keys, that does not change input value, are filtered out in handler. Keys "return", "escape", etc., which do not change value of input, are not filtered out, which causes a lot of problems.

@pkozlowski-opensource
Copy link
Member

Duplicate of #1206

@montgomery1944 would you mind sending a pull request? This should be relatively easy fix!

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

No branches or pull requests

2 participants