forked from qt-creator/qt-creator
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:
committed by
Xavier BESSON (Personal)
parent
218f346fcc
commit
223deb5968
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user