From edd5d207330faeeb5c9938fcbdf3b90f6b1ee9f2 Mon Sep 17 00:00:00 2001 From: elexis Date: Sat, 30 Jul 2016 16:30:07 +0000 Subject: [PATCH] Hide unassigned hotkeys. Patch by Imarok, refs #3051. This was SVN commit r18570. --- binaries/data/mods/public/gui/common/color.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binaries/data/mods/public/gui/common/color.js b/binaries/data/mods/public/gui/common/color.js index 3aeafe940c..aa9473a4f1 100644 --- a/binaries/data/mods/public/gui/common/color.js +++ b/binaries/data/mods/public/gui/common/color.js @@ -134,7 +134,7 @@ function colorizeHotkey(text, hotkey) { let key = Engine.ConfigDB_GetValue("user", "hotkey." + hotkey); - if (!key) + if (!key || key.toLowerCase() == "unused") return ""; return sprintf(text, {