Compare commits

...

2 Commits

Author SHA1 Message Date
Johnpaul Chiwetelu
9b9d88598a Merge branch 'main' into fix/add-focus-mode-keybinding 2026-03-05 01:19:29 +01:00
Johnpaul Chiwetelu
f55ccf6d6b fix: add focus mode keyboard shortcut (Ctrl+Shift+F)
Bind Ctrl+Shift+F to Workspace.ToggleFocusMode which previously had
no default keybinding.
2026-03-04 22:06:47 +01:00
2 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import { describe, expect, it } from 'vitest'
import { CORE_KEYBINDINGS } from '@/platform/keybindings/defaults'
describe('CORE_KEYBINDINGS', () => {
it('should include Workspace.ToggleFocusMode bound to Ctrl+Shift+F', () => {
const binding = CORE_KEYBINDINGS.find(
(kb) => kb.commandId === 'Workspace.ToggleFocusMode'
)
expect(binding).toBeDefined()
expect(binding!.combo).toEqual({
key: 'f',
ctrl: true,
shift: true
})
})
})

View File

@@ -208,5 +208,13 @@ export const CORE_KEYBINDINGS: Keybinding[] = [
key: 'Escape'
},
commandId: 'Comfy.Graph.ExitSubgraph'
},
{
combo: {
key: 'f',
ctrl: true,
shift: true
},
commandId: 'Workspace.ToggleFocusMode'
}
]