From: phasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Wed, 20 Apr 2011 05:03:33 +0000 (+0000)
Subject: More hotkey fixes - Invalidate keyset cache
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1d42f1ad931324eb1f61558576a5c24e7cf7acd8;p=evergreen%2Fbjwebb.git

More hotkey fixes - Invalidate keyset cache

Thanks to http://forums.mozillazine.org/viewtopic.php?f=19&t=2048501,

Author: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>


git-svn-id: svn://svn.open-ils.org/ILS/trunk@20228 dcc99617-32d9-48b4-a31d-7c20da2025e4
---

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 7319be40b..b146f0144 100644
--- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js
+++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js
@@ -1828,6 +1828,8 @@ commands:
                 menuitems[i].style.removeProperty('display'); // Restore normal css display
             }
         }
+        // Force reload of keyset cache?
+        keyset.parentNode.insertBefore(keyset, keyset.nextSibling);
         // If no keys, disable ability to toggle hotkeys (because why bother?)
         var x = document.getElementById('cmd_hotkeys_toggle');
         if(x) {