Terminal: Only unlock exit on macOS

Fixes: QTCREATORBUG-29902
Change-Id: Ifbb1f12c874f2f68483a34ac6e117214211e5be4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-11-15 14:53:48 +01:00
parent 90e6fb54b6
commit 7819fc5dfb

View File

@@ -293,6 +293,10 @@ void TerminalWidget::setupActions()
this,
&TerminalWidget::moveCursorWordRight);
// Ctrl+Q, the default "Quit" shortcut, is a useful key combination in a shell.
// It can be used in combination with Ctrl+S to pause a program, and resume it with Ctrl+Q.
// So we unlock the EXIT command only for macOS where the default is Cmd+Q to quit.
if (HostOsInfo::isMacHost())
unlockGlobalAction(Core::Constants::EXIT);
unlockGlobalAction(Core::Constants::OPTIONS);
unlockGlobalAction("Preferences.Terminal.General");