- change: remove shortcuts for line/column mode

This commit is contained in:
Roy Qu 2022-03-17 20:57:43 +08:00
parent 12edcb22a5
commit 49080b88e1
3 changed files with 7 additions and 5 deletions

View File

@ -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

View File

@ -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);
}

View File

@ -4190,7 +4190,7 @@ void SynEdit::doUndoItem()
Item->changeReason(),
caretXY(),
caretXY(), "",
mActiveSelectionMode);
Item->changeSelMode());
internalSetCaretXY(Item->changeStartPos());
break;
case SynChangeReason::crSelection:
@ -4199,7 +4199,7 @@ void SynEdit::doUndoItem()
blockBegin(),
blockEnd(),
"",
mActiveSelectionMode);
Item->changeSelMode());
setCaretAndSelection(caretXY(), Item->changeStartPos(), Item->changeEndPos());
break;
case SynChangeReason::crInsert:
@ -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: