From 1d42f1ad931324eb1f61558576a5c24e7cf7acd8 Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 20 Apr 2011 05:03:33 +0000 Subject: [PATCH] More hotkey fixes - Invalidate keyset cache Thanks to http://forums.mozillazine.org/viewtopic.php?f=19&t=2048501, Author: Thomas Berezansky Signed-off-by: Thomas Berezansky Signed-off-by: Jason Etheridge 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 | 2 ++ 1 file changed, 2 insertions(+) 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 7319be40b8..b146f01447 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) { -- 2.11.0