From d2a09dea24f9a2ef5384ca2daab889d30b5b5e2f Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Fri, 29 Apr 2022 16:15:18 +0800 Subject: [PATCH] - change: use Shift+Enter to break line --- NEWS.md | 3 +++ RedPandaIDE/qsynedit/KeyStrokes.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index b214eca3..894203f4 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,6 @@ +Red Panda C++ Version 1.0.7 + - change: use Shift+Enter to break line + Red Panda C++ Version 1.0.6 - fix: gcc compiler set name is not correct in Linux - enhancement: hide add charset option when the currect compiler set is clang diff --git a/RedPandaIDE/qsynedit/KeyStrokes.cpp b/RedPandaIDE/qsynedit/KeyStrokes.cpp index 01a079f7..61255c2a 100644 --- a/RedPandaIDE/qsynedit/KeyStrokes.cpp +++ b/RedPandaIDE/qsynedit/KeyStrokes.cpp @@ -226,10 +226,10 @@ void SynEditKeyStrokes::resetDefaults() // 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); -// add(SynEditorCommand::ecLineBreak, Qt::Key_Return, Qt::ShiftModifier); + add(SynEditorCommand::ecLineBreak, Qt::Key_Return, Qt::ShiftModifier); add(SynEditorCommand::ecLineBreakAtEnd, Qt::Key_Return, Qt::ControlModifier); add(SynEditorCommand::ecLineBreak, Qt::Key_Enter, Qt::NoModifier); -// add(SynEditorCommand::ecLineBreak, Qt::Key_Enter, Qt::ShiftModifier); + add(SynEditorCommand::ecLineBreak, Qt::Key_Enter, Qt::ShiftModifier); add(SynEditorCommand::ecLineBreakAtEnd, Qt::Key_Enter, Qt::ControlModifier); // add(SynEditorCommand::ecTab, Qt::Key_Tab, Qt::NoModifier); // add(SynEditorCommand::ecShiftTab, Qt::Key_Backtab, Qt::ShiftModifier);