You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/API-Reference/command/KeyBindingManager.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,7 @@ Returns record(s) for valid key binding(s).
90
90
| Param | Type | Description |
91
91
| --- | --- | --- |
92
92
| command | <code>string</code> \| <code>Command</code> | A command ID or command object |
93
-
| keyBindings | <code>Object</code> | A single key binding or an array of keybindings. In an array of keybinding `platform` property is also available. Example: "Shift-Cmd-F". Mac and Win key equivalents are automatically mapped to each other. Use displayKey property to display a different string (e.g. "CMD+" instead of "CMD="). |
93
+
| keyBindings | <code>Object</code> | A single key binding or an array of keybindings. In an array of keybinding `platform` property is also available. Example: "Shift-Cmd-F". Mac and Win key equivalents are automatically mapped to each other. Use displayKey property to display a different string (e.g. "CMD+" instead of "CMD="). if browserOnly is true, then the shortcut will only apply in browser if nativeOnly is set, the shortcut will only apply in native apps |
94
94
| platform | <code>string</code> | The target OS of the keyBindings either "mac", "win" or "linux". If undefined, all platforms not explicitly defined will use the key binding. NOTE: If platform is not specified, Ctrl will be replaced by Cmd for "mac" platform |
95
95
| options | <code>object</code> ||
96
96
| options.isMenuShortcut | <code>boolean</code> | this allows alt-key shortcuts to be registered. |
0 commit comments