From 417938d7ee58529e7ae26e7b01b25876e7a9592e Mon Sep 17 00:00:00 2001 From: phasefx Date: Sun, 16 Nov 2008 18:48:23 +0000 Subject: [PATCH] This helps move focus out of newly hidden tabs so that they don't grab shortcut keys git-svn-id: svn://svn.open-ils.org/ILS/trunk@11229 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/chrome/content/main/menu.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu.js b/Open-ILS/xul/staff_client/chrome/content/main/menu.js index 52a2a11b56..4bff0362fb 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js @@ -871,6 +871,7 @@ main.menu.prototype = { var idx = this.controller.view.tabs.selectedIndex; if (params && typeof params.index != 'undefined') idx = params.index; var tab = this.controller.view.tabs.childNodes[ idx ]; + if (params.focus) tab.focus(); var panel = this.controller.view.panels.childNodes[ idx ]; while ( panel.lastChild ) panel.removeChild( panel.lastChild ); -- 2.11.0