From db9f0f0219414a183891937de5319692c338a43f Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Tue, 25 Jan 2022 11:11:38 +0800 Subject: [PATCH] change shortcuts --- RedPandaIDE/mainwindow.ui | 3 ++- RedPandaIDE/qsynedit/KeyStrokes.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RedPandaIDE/mainwindow.ui b/RedPandaIDE/mainwindow.ui index f53d6e81..0e41e1ff 100644 --- a/RedPandaIDE/mainwindow.ui +++ b/RedPandaIDE/mainwindow.ui @@ -540,6 +540,7 @@ + 50 false @@ -1394,7 +1395,7 @@ 0 0 1114 - 25 + 26 diff --git a/RedPandaIDE/qsynedit/KeyStrokes.cpp b/RedPandaIDE/qsynedit/KeyStrokes.cpp index 78879b5a..3e29c2e5 100644 --- a/RedPandaIDE/qsynedit/KeyStrokes.cpp +++ b/RedPandaIDE/qsynedit/KeyStrokes.cpp @@ -218,6 +218,7 @@ void SynEditKeyStrokes::resetDefaults() add(SynEditorCommand::ecDeleteLastChar, Qt::Key_Backspace, Qt::NoModifier); add(SynEditorCommand::ecDeleteLastChar, Qt::Key_Backspace, Qt::ShiftModifier); add(SynEditorCommand::ecDeleteWordStart, Qt::Key_Backspace, Qt::ControlModifier); + add(SynEditorCommand::ecDeleteWordEnd, Qt::Key_Delete, Qt::ControlModifier); add(SynEditorCommand::ecUndo, Qt::Key_Backspace, Qt::AltModifier); add(SynEditorCommand::ecRedo, Qt::Key_Backspace, Qt::AltModifier|Qt::ShiftModifier); add(SynEditorCommand::ecLineBreak, Qt::Key_Return, Qt::NoModifier);