From 5814b84805cddeee9e5b6e37de7bf7e86788a15a Mon Sep 17 00:00:00 2001 From: "reed%reedloden.com" Date: Fri, 28 Mar 2008 08:34:40 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20385374=20-=20"After=20performing=20an=20o?= =?UTF-8?q?peration=20to=20the=20selected=20richlistitem,=20it=20is=20no?= =?UTF-8?q?=20longer=20focused"=20[p=3Ddao@mozilla.com=20(D=EF=BF=BD?= =?UTF-8?q?=EF=BF=BDo=20Gottwald)=20r=3DNeil=20a=3Dblocking1.9+]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- toolkit/content/widgets/button.xml | 2 ++ toolkit/content/widgets/listbox.xml | 21 ++++++++++++--------- toolkit/content/widgets/menulist.xml | 4 +++- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/toolkit/content/widgets/button.xml b/toolkit/content/widgets/button.xml index df17db15131..15c210738a0 100644 --- a/toolkit/content/widgets/button.xml +++ b/toolkit/content/widgets/button.xml @@ -149,6 +149,7 @@ (event.keyCode == KeyEvent.DOM_VK_RIGHT && document.defaultView.getComputedStyle(this.parentNode, "") .direction == "rtl")) { + event.preventDefault(); window.document.commandDispatcher.rewindFocus(); return; } @@ -160,6 +161,7 @@ (event.keyCode == KeyEvent.DOM_VK_LEFT && document.defaultView.getComputedStyle(this.parentNode, "") .direction == "rtl")) { + event.preventDefault(); window.document.commandDispatcher.advanceFocus(); return; } diff --git a/toolkit/content/widgets/listbox.xml b/toolkit/content/widgets/listbox.xml index 65429492d9f..6c677b31dcc 100644 --- a/toolkit/content/widgets/listbox.xml +++ b/toolkit/content/widgets/listbox.xml @@ -545,9 +545,12 @@ @@ -580,22 +583,22 @@ + group="system"/> + group="system"/> + group="system"/> + group="system"/> + group="system"/> + group="system"/> 0)) { // Moving relative to an item: start from the currently selected item this.menuBoxObject.activeChild = this.mSelectedInternal; - if (this.menuBoxObject.handleKeyPress(event)) + if (this.menuBoxObject.handleKeyPress(event)) { this.menuBoxObject.activeChild.doCommand(); + event.preventDefault(); + } } ]]>