mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Support Ctrl + Shift + Z
as editor redo hotkey.
This commit is contained in:
parent
2fda94aa35
commit
1eada0a8ba
|
@ -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