mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #7708 from furo321/ctrl-shift-z
Support `Ctrl + Shift + Z` as editor redo hotkey.
This commit is contained in:
commit
0376f1cd2b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue