Skip to content

Commit

Permalink
Restrict "Enter User Command" to game scope only
Browse files Browse the repository at this point in the history
The hotkey was assigned three scopes in order to appear under the General tab.
However, as it has no effect outside the game, it makes no sense for it to appear there.
  • Loading branch information
Vultraz committed Oct 11, 2015
1 parent 7a6293a commit fe7b30f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hotkey/hotkey_command.cpp
Expand Up @@ -240,8 +240,7 @@ hotkey::hotkey_command_temp hotkey_list_[] = {
{ hotkey::HOTKEY_SPEAK_ALL, "speaktoall", N_("Speak to All"), false, scope_game, "" },
{ hotkey::HOTKEY_HELP, "help", N_("Help"), false, scope_game | scope_editor | scope_main, "" },
{ hotkey::HOTKEY_CHAT_LOG, "chatlog", N_("View Chat Log"), false, scope_game, "" },
//TODO: why does HOTKEY_USER_CMD have not only scope_game ?
{ hotkey::HOTKEY_USER_CMD, "command", N_("Enter User Command"), false, scope_game | scope_editor | scope_main, "" },
{ hotkey::HOTKEY_USER_CMD, "command", N_("Enter User Command"), false, scope_game, "" },
{ hotkey::HOTKEY_CUSTOM_CMD, "customcommand", N_("Custom Command"), false, scope_game, "" },
{ hotkey::HOTKEY_AI_FORMULA, "aiformula", N_("Run Formula"), false, scope_game, "" },
{ hotkey::HOTKEY_CLEAR_MSG, "clearmessages", N_("Clear Messages"), false, scope_game, "" },
Expand Down

0 comments on commit fe7b30f

Please sign in to comment.