From 0209e9b4d282e223daf46de7dc950938896c5235 Mon Sep 17 00:00:00 2001 From: "reed@reedloden.com" Date: Fri, 28 Mar 2008 01:34:40 -0700 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=C3=A3o=20Gottw?= =?UTF-8?q?ald)=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 df17db151311..15c210738a02 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 65429492d9f0..6c677b31dcc8 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(); + } } ]]>