Created
April 5, 2012 11:32
-
-
Save aadrian/2310092 to your computer and use it in GitHub Desktop.
Keymaster bug with ALT key under Firefox.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Kemyaster Bug 2</title> | |
<script src="keymaster.js"></script> | |
<script type="text/javascript"> | |
key('alt+e', function(){ | |
console.log('alt+e pressed!'); | |
return false }); | |
key('alt+q', function(){ | |
console.log('alt+q pressed!'); | |
return false }); | |
</script> | |
</head> | |
<body> | |
<h1>Keymaster Bug 2</h1> | |
<form> | |
<input name="fld1" type="text"/> | |
</form> | |
<hr/> | |
<p> | |
Type Alt + e with the focus in the input field. 'Alt' remains blocked. Pressing e, and q will trigger | |
further this behavior, despite the fact that only 'alt+e' or 'alt+q' should do it. | |
</p> | |
<hr/> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment