Line data Source code
1 : import type { Keybinding } from '@comfyorg/keybindings/types'
2 :
3 2356 : export const CORE_KEYBINDINGS: Keybinding[] = [
4 : {
5 : combo: {
6 : ctrl: true,
7 : key: 'Enter'
8 : },
9 : commandId: 'Comfy.QueuePrompt'
10 : },
11 : {
12 : combo: {
13 : ctrl: true,
14 : shift: true,
15 : key: 'Enter'
16 : },
17 : commandId: 'Comfy.QueuePromptFront'
18 : },
19 : {
20 : combo: {
21 : ctrl: true,
22 : alt: true,
23 : key: 'Enter'
24 : },
25 : commandId: 'Comfy.Interrupt'
26 : },
27 : {
28 : combo: {
29 : key: 'r'
30 : },
31 : commandId: 'Comfy.RefreshNodeDefinitions'
32 : },
33 : {
34 : combo: {
35 : key: 'w'
36 : },
37 : commandId: 'Workspace.ToggleSidebarTab.workflows'
38 : },
39 : {
40 : combo: {
41 : key: 'n'
42 : },
43 : commandId: 'Workspace.ToggleSidebarTab.node-library'
44 : },
45 : {
46 : combo: {
47 : key: 'm'
48 : },
49 : commandId: 'Workspace.ToggleSidebarTab.model-library'
50 : },
51 : {
52 : combo: {
53 : key: 'a'
54 : },
55 : commandId: 'Workspace.ToggleSidebarTab.assets'
56 : },
57 : {
58 : combo: {
59 : alt: true,
60 : key: 'm'
61 : },
62 : commandId: 'Comfy.ToggleLinear'
63 : },
64 : {
65 : combo: {
66 : alt: true,
67 : key: 'ยต'
68 : },
69 : commandId: 'Comfy.ToggleLinear'
70 : },
71 : {
72 : combo: {
73 : key: 's',
74 : ctrl: true
75 : },
76 : commandId: 'Comfy.SaveWorkflow'
77 : },
78 : {
79 : combo: {
80 : key: 'o',
81 : ctrl: true
82 : },
83 : commandId: 'Comfy.OpenWorkflow'
84 : },
85 : {
86 : combo: {
87 : key: 'g',
88 : ctrl: true
89 : },
90 : commandId: 'Comfy.Graph.GroupSelectedNodes'
91 : },
92 : {
93 : combo: {
94 : key: ',',
95 : ctrl: true
96 : },
97 : commandId: 'Comfy.ShowSettingsDialog'
98 : },
99 : {
100 : combo: {
101 : key: '=',
102 : alt: true
103 : },
104 : commandId: 'Comfy.Canvas.ZoomIn',
105 : targetElementId: 'graph-canvas'
106 : },
107 : {
108 : combo: {
109 : key: '+',
110 : alt: true,
111 : shift: true
112 : },
113 : commandId: 'Comfy.Canvas.ZoomIn',
114 : targetElementId: 'graph-canvas'
115 : },
116 : {
117 : combo: {
118 : key: '+',
119 : alt: true
120 : },
121 : commandId: 'Comfy.Canvas.ZoomIn',
122 : targetElementId: 'graph-canvas'
123 : },
124 : {
125 : combo: {
126 : key: '-',
127 : alt: true
128 : },
129 : commandId: 'Comfy.Canvas.ZoomOut',
130 : targetElementId: 'graph-canvas'
131 : },
132 : {
133 : combo: {
134 : key: '.'
135 : },
136 : commandId: 'Comfy.Canvas.FitView',
137 : targetElementId: 'graph-canvas-container'
138 : },
139 : {
140 : combo: {
141 : key: 'p'
142 : },
143 : commandId: 'Comfy.Canvas.ToggleSelected.Pin',
144 : targetElementId: 'graph-canvas-container'
145 : },
146 : {
147 : combo: {
148 : key: 'c',
149 : alt: true
150 : },
151 : commandId: 'Comfy.Canvas.ToggleSelectedNodes.Collapse',
152 : targetElementId: 'graph-canvas-container'
153 : },
154 : {
155 : combo: {
156 : key: 'b',
157 : ctrl: true
158 : },
159 : commandId: 'Comfy.Canvas.ToggleSelectedNodes.Bypass',
160 : targetElementId: 'graph-canvas-container'
161 : },
162 : {
163 : combo: {
164 : key: 'm',
165 : ctrl: true
166 : },
167 : commandId: 'Comfy.Canvas.ToggleSelectedNodes.Mute',
168 : targetElementId: 'graph-canvas-container'
169 : },
170 : {
171 : combo: {
172 : key: 'l'
173 : },
174 : commandId: 'Comfy.Canvas.ToggleSelectedNodes.Links',
175 : targetElementId: 'graph-canvas-container'
176 : },
177 : {
178 : combo: {
179 : key: '`',
180 : ctrl: true
181 : },
182 : commandId: 'Workspace.ToggleBottomPanelTab.logs-terminal'
183 : },
184 : {
185 : combo: {
186 : key: 'e',
187 : ctrl: true,
188 : shift: true
189 : },
190 : commandId: 'Comfy.Graph.ConvertToSubgraph'
191 : },
192 : {
193 : combo: {
194 : key: 'm',
195 : alt: true,
196 : shift: true
197 : },
198 : commandId: 'Comfy.Canvas.ToggleMinimap'
199 : },
200 : {
201 : combo: {
202 : ctrl: true,
203 : shift: true,
204 : key: 'k'
205 : },
206 : commandId: 'Workspace.ToggleBottomPanel.Shortcuts'
207 : },
208 : {
209 : combo: {
210 : key: 'v'
211 : },
212 : commandId: 'Comfy.Canvas.Unlock'
213 : },
214 : {
215 : combo: {
216 : key: 'h'
217 : },
218 : commandId: 'Comfy.Canvas.Lock'
219 : },
220 : {
221 : combo: {
222 : key: 'Escape'
223 : },
224 : commandId: 'Comfy.Graph.ExitSubgraph'
225 : },
226 : {
227 : combo: {
228 : ctrl: true,
229 : key: 'a'
230 : },
231 : commandId: 'Comfy.Canvas.SelectAll',
232 : targetElementId: 'graph-canvas-container'
233 : },
234 : {
235 : combo: {
236 : ctrl: true,
237 : shift: true,
238 : key: 'v'
239 : },
240 : commandId: 'Comfy.Canvas.PasteFromClipboardWithConnect',
241 : targetElementId: 'graph-canvas-container'
242 : },
243 : {
244 : combo: {
245 : key: 'Delete'
246 : },
247 : commandId: 'Comfy.Canvas.DeleteSelectedItems',
248 : targetElementId: 'graph-canvas-container'
249 : },
250 : {
251 : combo: {
252 : key: 'Backspace'
253 : },
254 : commandId: 'Comfy.Canvas.DeleteSelectedItems',
255 : targetElementId: 'graph-canvas-container'
256 : }
257 : ]
|