GitHub

/desktop-keyboard

Desktop Keyboard

Platform modifiers, standard shortcuts, labels per OS, and lists you can drive with arrow keys.

npx skills@latest add agmmnn/desktop-feel --skill desktop-keyboard

Tauri, Electron · 7 rules · Updated November 28, 2026

What it does

  • Shortcut fires on both ⌘ and Ctrl on macOS. Platform modifier only DK-01
  • "Ctrl+K" shown on a Mac. Labels per platform DK-02
  • Escape doesn't close, Enter doesn't submit. Dialog keyboard contract DK-03
  • ⌘, / ⌘W / ⌘N do nothing. Standard shortcuts DK-04
  • Arrow keys don't move through a list. Roving tabindex DK-05
  • Typing "d" in a field triggers an action. Skip editable targets DK-06
  • Global shortcut steals a menu or OS shortcut. Check collisions DK-07

When to use it

When you add shortcuts or a command palette, or shortcuts behave or display wrong on one platform.

Example prompts

You don’t need special wording. Describe the problem the way you’d describe it to a teammate.

  • /desktop-keyboard shortcuts show Ctrl on my Mac
  • /desktop-keyboard make the file list work with arrow keys

Rules

Each rule has a stable ID. Review and audit output link back here.

DK-01Platform modifier

Use the platform modifier, not both.

Look for
metaKey || ctrlKey for the same shortcut
Verify on
code
Severity
Medium

DK-02Labels per platform

Shortcut labels match the platform.

Look for
hard-coded Ctrl+ or ⌘ in UI strings
Verify on
code
Severity
Low

DK-03Dialog keyboard contract

Escape closes dialogs, popovers and menus (and cancels a drag). Enter activates the default button, which is visibly marked. Focus moves into a dialog when it opens and returns to the trigger when it closes. Destructive confirmations do not make the destructive button the Enter default.

Look for
dialogs/popovers without Escape; forms without a default button
Verify on
code
Severity
Low

DK-04Standard shortcuts

Standard shortcuts exist.

Look for
no ⌘, / ⌘W / ⌘N / ⌘Q (macOS) or Ctrl equivalents
Verify on
code
Severity
Low

DK-05Keyboard-navigable lists

Lists, trees and grids are one tab stop; arrow keys move within. Up/Down, Home/End, type-ahead to the first matching item, Space/Enter to activate, Shift+arrows to extend selection where multi-select exists. Use roving tabindex (0 on the active item, -1 on others) or aria-activedescendant.

Look for
custom lists without arrow keys, Home/End, roving tabindex
Verify on
code
Severity
Low

DK-06Skip editable targets

Shortcuts don't fire while typing.

Look for
global keydown without an editable-target check
Verify on
code
Severity
Medium

DK-07Global shortcuts don't collide

Global shortcuts (tauri-plugin-global-shortcut) work while the app is in the background, so they compete with every other app. Use them only for features that need them (a launcher, push-to-talk), make them configurable, and handle registration failure (another app owns the combo).

Look for
global-shortcut registrations overlapping menu accelerators or OS shortcuts
Verify on
each OS
Severity
Low

Read the full skill on GitHub