Skip to content

Commit

Permalink
Github Issue #170: Added steps to save the file immediately if pressi…
Browse files Browse the repository at this point in the history
…ng backspace causing merging of mutliple blocks
  • Loading branch information
AngryFender committed May 31, 2024
1 parent 2a286ad commit ca7738b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mkedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ void MkEdit::keyPressEvent(QKeyEvent *event)
case Qt::Key_Return: emit enterKeyPressed(this->textCursor().blockNumber());
case Qt::Key_Space: fileSaveNow(); return;
case Qt::Key_QuoteLeft: quoteLeftKey(); fileSaveNow(); return;
case Qt::Key_Backspace: if( undoData.forceMulti == true){ fileSaveNow(); return;}break;
case Qt::Key_D: if( event->modifiers() == Qt::CTRL) {emit duplicateLine(this->textCursor().blockNumber());; fileSaveNow(); return;}break;
case Qt::Key_Z: if( event->modifiers() == Qt::CTRL) {emit undoStackUndoSignal(); undoData.undoRedoSkip = true; fileSaveNow();showSelectionAfterUndo(); return;}break;
case Qt::Key_Y: if( event->modifiers() == Qt::CTRL) {emit undoStackRedoSignal(); undoData.undoRedoSkip = true; fileSaveNow();showSelectionAfterRedo(); return;}break;
Expand Down

0 comments on commit ca7738b

Please sign in to comment.