From d4976fbd311ee96114de7aef166c2ab3330fb064 Mon Sep 17 00:00:00 2001 From: "aaronl%netscape.com" Date: Fri, 31 Jan 2003 07:37:58 +0000 Subject: [PATCH] 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 --- mozilla/xpfe/global/resources/content/bindings/button.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/xpfe/global/resources/content/bindings/button.xml b/mozilla/xpfe/global/resources/content/bindings/button.xml index 81294d30398..698f735b476 100644 --- a/mozilla/xpfe/global/resources/content/bindings/button.xml +++ b/mozilla/xpfe/global/resources/content/bindings/button.xml @@ -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