Implement Delete key command

This commit is contained in:
G.K.MacGregor
2021-02-12 21:33:06 +00:00
parent d5bb0417af
commit 9a997d1bfa
3 changed files with 75 additions and 0 deletions

View File

@@ -332,6 +332,10 @@ void TeletextWidget::keyPressEvent(QKeyEvent *event)
case Qt::Key_Backspace:
backspaceEvent();
break;
case Qt::Key_Delete:
m_teletextDocument->undoStack()->push(new DeleteKeyCommand(m_teletextDocument));
break;
case Qt::Key_Up:
m_teletextDocument->cursorUp();
update();