From c916e5d262b56036fe9658e8d71c487cfbe21ead Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Wed, 26 Oct 2022 23:53:25 +0200 Subject: [PATCH] Change editor hotkey Ctrl+A to Ctrl+T for layer/tile details The hotkey Ctrl+A is already active universally in the editor to open and append a map to the current one. This collides with the hotkeys for opening the layer/tile details popup for tune, tele, speedup and switch layers, which is only active when a layer of said type is select. Pressing the hotkey in this context opens the popup and the append dialog at the same time, which is undesirable. Therefore the hotkey to open the layer/tile details is changed to Ctrl+T instead. This combination is currently unused and seems approriate, as the T could stand for "Tile details". --- src/game/editor/editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/editor/editor.cpp b/src/game/editor/editor.cpp index 3227b2bd7..3a60964f2 100644 --- a/src/game/editor/editor.cpp +++ b/src/game/editor/editor.cpp @@ -1166,11 +1166,11 @@ void CEditor::DoToolbar(CUIRect ToolBar) if(pButtonName != nullptr) { static char aBuf[64]; - str_format(aBuf, sizeof(aBuf), "[ctrl+a] %s", pButtonName); + str_format(aBuf, sizeof(aBuf), "[ctrl+t] %s", pButtonName); TB_Bottom.VSplitLeft(60.0f, &Button, &TB_Bottom); static int s_ModifierButton = 0; - if(DoButton_Ex(&s_ModifierButton, pButtonName, 0, &Button, 0, aBuf, IGraphics::CORNER_ALL) || (ModPressed && Input()->KeyPress(KEY_A))) + if(DoButton_Ex(&s_ModifierButton, pButtonName, 0, &Button, 0, aBuf, IGraphics::CORNER_ALL) || (ModPressed && Input()->KeyPress(KEY_T))) { static int s_ModifierPopupID = 0; if(!UiPopupExists(&s_ModifierPopupID))