Hide unassigned hotkeys. Patch by Imarok, refs #3051.

This was SVN commit r18570.
This commit is contained in:
elexis 2016-07-30 16:30:07 +00:00
parent 51eb4b255c
commit edd5d20733

View File

@ -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, {