From bb216ac58a2dc9facf8dec0e253a5b6938b27330 Mon Sep 17 00:00:00 2001 From: markoub <2418548+markoub@users.noreply.github.com> Date: Tue, 16 Jun 2026 22:40:52 +0200 Subject: [PATCH] docs: use uppercase hotkey example --- en/Plugins/User interface/Commands.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/en/Plugins/User interface/Commands.md b/en/Plugins/User interface/Commands.md index 64723cc3..acbe71b1 100644 --- a/en/Plugins/User interface/Commands.md +++ b/en/Plugins/User interface/Commands.md @@ -104,13 +104,13 @@ The user can run commands using a keyboard shortcut, or _hot key_. While they ca > [!warning] > Avoid setting default hot keys for plugins that you intend for others to use. Hot keys are highly likely to conflict with those defined by other plugins or by the user themselves. -In this example, the user can run the command by pressing and holding Ctrl (or Cmd on Mac) and Shift together, and then pressing the letter `a` on their keyboard. +In this example, the user can run the command by pressing and holding Ctrl (or Cmd on Mac) and Shift together, and then pressing the letter `A` on their keyboard. ```ts this.addCommand({ id: 'example-command', name: 'Example command', - hotkeys: [{ modifiers: ['Mod', 'Shift'], key: 'a' }], + hotkeys: [{ modifiers: ['Mod', 'Shift'], key: 'A' }], callback: () => { console.log('Hey, you!'); }, @@ -119,3 +119,5 @@ this.addCommand({ > [!note] > The Mod key is a special modifier key that becomes Ctrl on Windows and Linux, and Cmd on macOS. + +For letter keys, use uppercase values for `key`, such as `A` instead of `a`. Lowercase letter values can cause hot keys to fail when the user uses a non-Latin keyboard layout.