AnitaTang / js-hotkeys

Automatically exported from code.google.com/p/js-hotkeys
0 stars 0 forks source link

Hotkeys are intercepted in password fields #95

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Just add some <input type=password id=mypassword> to HTML
2. Bind some key and try to press it when the focus is on "mypassword" field

What is the expected output? What do you see instead?
Hotkeys shouldn't be available when the focus is on password fields

What version of the product are you using? On what operating system?
0.8

Please provide any additional information below.
How to fix: just replace line #47 with the following:
 event.target.type === "text" || event.target.type === "password") ) {

Original issue reported on code.google.com by vgu...@yandex.ru on 13 Dec 2010 at 4:38