forked from 0ad/0ad
Hide unassigned hotkeys. Patch by Imarok, refs #3051.
This was SVN commit r18570.
This commit is contained in:
parent
51eb4b255c
commit
edd5d20733
@ -134,7 +134,7 @@ function colorizeHotkey(text, hotkey)
|
|||||||
{
|
{
|
||||||
let key = Engine.ConfigDB_GetValue("user", "hotkey." + hotkey);
|
let key = Engine.ConfigDB_GetValue("user", "hotkey." + hotkey);
|
||||||
|
|
||||||
if (!key)
|
if (!key || key.toLowerCase() == "unused")
|
||||||
return "";
|
return "";
|
||||||
|
|
||||||
return sprintf(text, {
|
return sprintf(text, {
|
||||||
|
Loading…
Reference in New Issue
Block a user