Shortcut to enable/disable shortcuts routing to terminal

Fixes: QTCREATORBUG-29876
Change-Id: I8b04c09ce1de7dab968499773179f663c1c6fe7d
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Xavier BESSON
2023-11-13 09:40:37 +01:00
committed by Xavier BESSON (Personal)
parent 218f346fcc
commit 223deb5968
4 changed files with 16 additions and 0 deletions

View File

@@ -571,6 +571,12 @@ bool TerminalWidget::event(QEvent *event)
return true;
}
if (settings().lockKeyboard()
&& QKeySequence(keyEvent->keyCombination())
== ActionManager::command(Constants::TOGGLE_KEYBOARD_LOCK)->keySequence()) {
return false;
}
if (settings().lockKeyboard()) {
event->accept();
return true;