Skip to content

Instantly share code, notes, and snippets.

@aadrian
Created April 5, 2012 11:32
Show Gist options
  • Save aadrian/2310092 to your computer and use it in GitHub Desktop.
Save aadrian/2310092 to your computer and use it in GitHub Desktop.
Keymaster bug with ALT key under Firefox.
<!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