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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user