Skip to content

Commit

Permalink
- change: remove shortcuts for line/column mode
Browse files Browse the repository at this point in the history
  • Loading branch information
royqh1979 committed Mar 17, 2022
1 parent 12edcb2 commit 49080b8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Red Panda C++ Version 1.0.0
- fix: hits in the search view not correctly displayed (overlapped with others)
- enhancement: auto convert project icon to ico format
- fix: correctly reparse modified project files when rename symbol
- change: remove shortcuts for line/column mode

Red Panda C++ Version 0.14.5
- fix: the "gnu c++ 20" option in compiler set options is wrong
Expand Down
6 changes: 3 additions & 3 deletions RedPandaIDE/qsynedit/KeyStrokes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ void SynEditKeyStrokes::resetDefaults()
// add(SynEditorCommand::ecSetMarker7, Qt::Key_7, Qt::ControlModifier | Qt::ShiftModifier);
// add(SynEditorCommand::ecSetMarker8, Qt::Key_8, Qt::ControlModifier | Qt::ShiftModifier);
// add(SynEditorCommand::ecSetMarker9, Qt::Key_9, Qt::ControlModifier | Qt::ShiftModifier);
add(SynEditorCommand::ecNormalSelect, Qt::Key_N, Qt::ControlModifier | Qt::ShiftModifier);
add(SynEditorCommand::ecColumnSelect, Qt::Key_C, Qt::ControlModifier | Qt::ShiftModifier);
add(SynEditorCommand::ecLineSelect, Qt::Key_L, Qt::ControlModifier | Qt::ShiftModifier);
// add(SynEditorCommand::ecNormalSelect, Qt::Key_N, Qt::ControlModifier | Qt::ShiftModifier);
// add(SynEditorCommand::ecColumnSelect, Qt::Key_C, Qt::ControlModifier | Qt::ShiftModifier);
// add(SynEditorCommand::ecLineSelect, Qt::Key_L, Qt::ControlModifier | Qt::ShiftModifier);
// add(SynEditorCommand::ecMatchBracket, Qt::Key_B, Qt::ControlModifier | Qt::ShiftModifier);
}
5 changes: 3 additions & 2 deletions RedPandaIDE/qsynedit/SynEdit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4190,7 +4190,7 @@ void SynEdit::doUndoItem()
Item->changeReason(),
caretXY(),
caretXY(), "",
mActiveSelectionMode);
Item->changeSelMode());
internalSetCaretXY(Item->changeStartPos());
break;
case SynChangeReason::crSelection:
Expand All @@ -4199,7 +4199,7 @@ void SynEdit::doUndoItem()
blockBegin(),
blockEnd(),
"",
mActiveSelectionMode);
Item->changeSelMode());
setCaretAndSelection(caretXY(), Item->changeStartPos(), Item->changeEndPos());
break;
case SynChangeReason::crInsert:
Expand Down Expand Up @@ -5713,6 +5713,7 @@ void SynEdit::ExecuteCommand(SynEditorCommand Command, QChar AChar, void *pData)
setSelectionMode(SynSelectionMode::smNormal);
break;
case SynEditorCommand::ecLineSelect:
qDebug()<<"????";
setSelectionMode(SynSelectionMode::smLine);
break;
case SynEditorCommand::ecColumnSelect:
Expand Down

0 comments on commit 49080b8

Please sign in to comment.