This helps move focus out of newly hidden tabs so that they don't grab shortcut keys
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 16 Nov 2008 18:48:23 +0000 (18:48 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 16 Nov 2008 18:48:23 +0000 (18:48 +0000)
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

index 52a2a11..4bff036 100644 (file)
@@ -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 );