diff options
author | Xavier BESSON <[email protected]> | 2023-11-13 09:40:37 +0100 |
---|---|---|
committer | Xavier BESSON (Personal) <[email protected]> | 2023-11-13 13:41:04 +0000 |
commit | 223deb596839e3b96236d0047c9e5290aedcb691 (patch) | |
tree | 3dc25f2b03d0bcfa5147a7183b2b9a91e14fe2a9 /src/plugins/terminal/terminalwidget.cpp | |
parent | 218f346fcc76f56bb383b3717aef2e6b741e4e91 (diff) |
Shortcut to enable/disable shortcuts routing to terminal
Fixes: QTCREATORBUG-29876
Change-Id: I8b04c09ce1de7dab968499773179f663c1c6fe7d
Reviewed-by: Marcus Tillmanns <[email protected]>
Diffstat (limited to 'src/plugins/terminal/terminalwidget.cpp')
-rw-r--r-- | src/plugins/terminal/terminalwidget.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/terminal/terminalwidget.cpp b/src/plugins/terminal/terminalwidget.cpp index c9b52f6bf35..584a15a90cd 100644 --- a/src/plugins/terminal/terminalwidget.cpp +++ b/src/plugins/terminal/terminalwidget.cpp @@ -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; |