Reputation: 2971
I noticed that keypress
event for the Enter key doesn't always fire on MS Edge in some cases. I created the following examples on JSBin and JSFiddle, they behave differently.
On JSBin, keypress for Enter doesn't fire on document
until you put the focus into the <input>
https://jsbin.com/qoxadowepu/edit?html,js,output
On JSFiddle, keypress for Enter fires in both <input>
and document
.
http://jsfiddle.net/p4ohz8z9/1/
The behavior in my app is similar to the one in JSBin and it's unclear what's causing the keypress event for Enter not being triggered.
Upvotes: 1
Views: 2941
Reputation: 2971
This no longer happens in EdgeHTML 14.14393 after the Win10 Anniversary Update.
Upvotes: 1