Skip to content

Commit 44a6acc

Browse files
committed
chore: Add example of shortcut formats
1 parent cc4f410 commit 44a6acc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/blockly/core/utils/shortcut_formatting.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function getShortActionShortcut(action: string): string {
2828

2929
/**
3030
* Find the relevant shortcuts for the given action for the current platform.
31-
* Keys are returned in a long user facing format.
31+
* Keys are returned in a long user facing format, e.g. "Command ⌘ Option ⌥ C"
3232
*
3333
* @internal
3434
* @param action The action name, e.g. "cut".
@@ -52,7 +52,7 @@ const shortModifierNames: Record<string, string> = {
5252

5353
/**
5454
* Find the relevant shortcuts for the given action for the current platform.
55-
* Keys are returned in a user facing format.
55+
* Keys are returned in a short user facing format, e.g. "⌘ ⌥ C"
5656
*
5757
* This could be considerably simpler if we only bound shortcuts relevant to the
5858
* current platform or tagged them with a platform.

0 commit comments

Comments
 (0)