More hotkey fixes - Invalidate keyset cache
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 20 Apr 2011 05:03:33 +0000 (05:03 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 20 Apr 2011 05:03:33 +0000 (05:03 +0000)
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

Open-ILS/xul/staff_client/chrome/content/main/menu.js

index 7319be4..b146f01 100644 (file)
@@ -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) {