Bug 191150. oncommand getting fired twice for xul buttons when accesskey is pressed and button already has focus. r=samir, sr=jag, a=asa

git-svn-id: svn://10.0.0.236/trunk@137188 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
aaronl%netscape.com
2003-01-31 07:37:58 +00:00
parent bc6e654c7d
commit d4976fbd31

View File

@@ -129,7 +129,8 @@
event.keyCode == KeyEvent.DOM_VK_RIGHT)
return window.document.commandDispatcher.advanceFocus();
if (event.keyCode || event.charCode <= 32)
if (event.keyCode || event.charCode <= 32 || event.altKey ||
event.ctrlKey || event.metaKey)
return; // No printable char pressed, not a potential accesskey
// Possible accesskey pressed