forked from qt-creator/qt-creator
Terminal: Fix selections
Selections were invisible if a cell with a background color was selected. Changes to the terminal did not reliably reset the selection. Change-Id: I923223f43e5ee1b6576966f9dd791aa109ac1d5f Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -459,9 +459,6 @@ void TerminalSurface::sendKey(QKeyEvent *event)
|
||||
}
|
||||
|
||||
vterm_keyboard_unichar(d->m_vterm.get(), event->text().toUcs4()[0], VTERM_MOD_NONE);
|
||||
|
||||
// TODO: ??
|
||||
//setSelection(std::nullopt);
|
||||
} else if (mod == VTERM_MOD_CTRL && event->key() >= Qt::Key_A && event->key() < Qt::Key_Z) {
|
||||
vterm_keyboard_unichar(d->m_vterm.get(), 'a' + (event->key() - Qt::Key_A), mod);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user