From 292150476c1cfcace2f6434d11c3a2dab1e5ccdb Mon Sep 17 00:00:00 2001 From: LangLangBart <92653266+LangLangBart@users.noreply.github.com> Date: Wed, 15 Nov 2023 19:00:47 +0100 Subject: [PATCH] fix(vscode): keybinding full screen toggle shortcut (#625) --- extensions/vscode/package.json | 3 ++- gui/src/components/dialogs/KeyboardShortcuts.tsx | 5 +++++ gui/src/pages/gui.tsx | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 06d4a1a77..2ad9dc2a3 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -170,7 +170,8 @@ { "command": "continue.toggleFullScreen", "mac": "cmd+k cmd+m", - "key": "ctrl+k ctrl+m" + "key": "ctrl+k ctrl+m", + "when": "!terminalFocus" } ], "submenus": [ diff --git a/gui/src/components/dialogs/KeyboardShortcuts.tsx b/gui/src/components/dialogs/KeyboardShortcuts.tsx index b7a2ae0d2..243ae2fce 100644 --- a/gui/src/components/dialogs/KeyboardShortcuts.tsx +++ b/gui/src/components/dialogs/KeyboardShortcuts.tsx @@ -110,6 +110,11 @@ const vscodeShortcuts: KeyboardShortcutProps[] = [ windows: "Tab", description: "Toggle between context items", }, + { + mac: "⌘ K ⌘ M", + windows: "⌃ K ⌃ M", + description: "Toggle Full Screen", + }, ]; const jetbrainsShortcuts: KeyboardShortcutProps[] = [ diff --git a/gui/src/pages/gui.tsx b/gui/src/pages/gui.tsx index 620a95e0c..a78da4b6b 100644 --- a/gui/src/pages/gui.tsx +++ b/gui/src/pages/gui.tsx @@ -586,7 +586,7 @@ function GUI(props: GUIProps) { onClick={() => { postToIde("toggleFullScreen", {}); }} - text={`Toggle Full Screen (${getMetaKeyLabel()}K M)`} + text={`Toggle Full Screen (${getMetaKeyLabel()}K ${getMetaKeyLabel()}M)`} > {(window as any).isFullScreen ? (