Support Ctrl + Shift + Z as editor redo hotkey.

This commit is contained in:
furo 2023-12-25 12:02:18 +01:00
parent 2fda94aa35
commit 1eada0a8ba

View file

@ -7949,9 +7949,9 @@ void CEditor::Render()
if(m_Dialog == DIALOG_NONE && CLineInput::GetActiveInput() == nullptr)
{
// handle undo/redo hotkeys
if(Input()->KeyPress(KEY_Z) && Input()->ModifierIsPressed())
if(Input()->KeyPress(KEY_Z) && Input()->ModifierIsPressed() && !Input()->ShiftIsPressed())
UndoLastAction();
if(Input()->KeyPress(KEY_Y) && Input()->ModifierIsPressed())
if((Input()->KeyPress(KEY_Y) && Input()->ModifierIsPressed()) || (Input()->KeyPress(KEY_Z) && Input()->ModifierIsPressed() && Input()->ShiftIsPressed()))
RedoLastAction();
// handle brush save/load hotkeys