From cdb8dc078f443c03aec67e9758e97f42013897ae Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 20 Apr 2011 05:04:28 +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/branches/rel_2_1@20230 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