Customize Keyboard Shortcuts (Enhanced Edition)

AnkiWeb addon 353547840

Provides an interactive virtual keyboard for customizing, searching, and managing Anki shortcuts, with layout detection, third-party shortcut discovery, multilingual support, and developer integration tools.
AI-generated summary; may contain mistakes.

shortcutsdeveloper-toolsfork-or-reupload

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2026-11-27
Anki versions
23.09~
License
Not found (this does not mean that the addon has no license)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON, HTML+ERB
Description language
en

Maintenance

active

  • Last update or commit: 2026-11-27 (4 days before the snapshot).
  • Commits in the last year: 7.
  • Issues: 0 open, 0 closed.
  • Pull requests: 0 open, 0 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.123.09+2026-11-27
History across monthly snapshots

Loading…

Similar addons

Shortcut Styler

Applies customizable text colors and background highlights to selected editor text via configurable keyboard shortcuts.

formattingshortcuts

8 votes 68% approval πŸ‘ 8 Β· πŸ‘Ž 0 Anki 2.1.1~ Updated 2025-01-07
Anki Card Viewer

Displays flashcards in a visual card layout grouped by a base tag, letting users suspend, unsuspend, and edit cards within the same interface.

review-flownote-managementtagging

2 votes 9% approval πŸ‘ 1 Β· πŸ‘Ž 1 ⭐ 1 Anki 2.1.1~ Updated 2025-04-17

Description

Customize Keyboard Shortcuts (Enhanced Edition)

An advanced keyboard shortcuts manager and interactive visualizer for Anki. Inspired by Adobe After Effects and professional creative software suites, this add-on brings a visual keyboard map, automatic Windows layout detection, and third-party add-on shortcut discovery to Anki.

Key Features

  • Interactive Virtual Keyboard: Live graphical layout rendering key mappings dynamically as you press or select modifiers (Ctrl, Alt, Shift).
  • Native Layout Detection: Automatically adapts to your active system keyboard layout (AZERTY, QWERTY, QWERTZ, Dvorak, Colemak).
  • Third-Party Add-on Discovery: Scans and displays shortcuts registered by other installed add-ons (EDN ecosystem, Card Management, Diff viewers, etc.).
  • Multi-Language Support: Seamless localization in French, English, and Chinese with automatic Anki language detection.
  • Quick Key Sequence Capture: Modal recorder to capture and assign shortcuts on the fly.
  • Search & Filter: Instantly search by action name, key, or category.

How to Use

  1. Go to Tools > Customize Keyboard Shortcuts... in the main Anki window.
  2. Click any key on the virtual keyboard to inspect its bound action, or browse actions by section (Main, Editor, Reviewer, Browser, etc.).
  3. Double-click an action or click a key to modify the keybinding.
  4. Click Apply to save your changes.

For Add-on Developers & Maintainers

Ensure zero shortcut conflicts for your users with zero friction:

  • Declarative Manifest (0 lines of code): Place a shortcuts.json at your add-on root to declare actions, scopes, defaults, and fallback combinations. The enhanced manager maps them to the virtual keyboard and prevents overlapping bindings automatically.
  • Dynamic Broker (mw.shortcut_broker): Query currently occupied keys via broker.get_occupied() or register actions dynamically with broker.claim(...), enabling immediate conflict-free assignment and live hot-reloading without restarting Anki.

See DEVELOPER_PROTOCOL.md on our GitHub repository for the full JSON schema and ready-to-use Python snippets.

Compatibility

  • Anki 2.1.50+ up to latest Anki 24.x / 25.x+
  • Windows, macOS, and Linux
  • Qt6 & Qt5

README

Customize Keyboard Shortcuts (Enhanced Edition)

An advanced keyboard shortcuts manager and interactive visualizer for Anki. Inspired by Adobe After Effects and professional creative suites, this add-on brings a visual keyboard map, automatic Windows layout detection, and third-party add-on shortcut discovery to Anki.


Key Features

  • Interactive Virtual Keyboard : Live graphical layout rendering key mappings dynamically as you press or select modifiers (Ctrl, Alt, Shift).
  • Native Layout Detection : Automatically adapts to your active system keyboard layout (AZERTY, QWERTY, QWERTZ, Dvorak, Colemak).
  • Third-Party Add-on Discovery : Scans and displays shortcuts registered by other installed add-ons (EDN ecosystem, Card Management, Diff viewers, etc.).
  • Multi-Language Support : Seamless localization in French, English, and Chinese with automatic Anki language detection.
  • Quick Key Sequence Capture : Modal recorder to capture and assign shortcuts on the fly.
  • Search & Filter : Instantly search by action name, key, or category.

How to Use

  1. Go to Tools > Customize Keyboard Shortcuts... in the main Anki window.
  2. Click any key on the virtual keyboard to inspect its bound action, or browse actions by section (Main, Editor, Reviewer, Browser, etc.).
  3. Double-click an action or click a key to modify the keybinding.
  4. Click Apply to save your changes.

Developer Protocol: Zero-Collision Integration for Add-on Authors

Ensure zero shortcut conflicts for your users with zero friction:

Option 1: Declarative Manifest (shortcuts.json) - 0 Lines of Python

Place a shortcuts.json at your add-on root (addons21/<your_addon>/shortcuts.json):

{
  "schema_version": 1,
  "addon_name": "My Add-on Name",
  "shortcuts": [
    {
      "id": "my_addon.open_panel",
      "label": "Open Analysis Panel",
      "scope": "browser",
      "default": "Ctrl+Alt+A",
      "fallbacks": ["Ctrl+Shift+A", "Alt+A", "F10"],
      "config_key": "shortcut_open_panel"
    }
  ]
}

The enhanced manager maps declared shortcuts to the virtual keyboard and prevents overlapping bindings automatically.

Option 2: Dynamic Broker API (mw.shortcut_broker) - Python

For add-ons that generate actions dynamically:

from aqt import mw

broker = getattr(mw, "shortcut_broker", None)
if broker:
    shortcut_key = broker.claim(
        action_id="my_addon.open_panel",
        label="Open Analysis Panel",
        scope="browser",
        preferred=["Ctrl+Alt+P", "Ctrl+Shift+P", "Alt+P"],
        on_change=lambda new_key: my_action.setShortcut(new_key),
        addon_id="my_addon",
        addon_name="My Add-on Name"
    )
else:
    shortcut_key = "Ctrl+Alt+P"

See DEVELOPER_PROTOCOL.md for full schema details and examples.


Installation

Via AnkiWeb (Recommended)

  1. In Anki, go to Tools > Add-ons > Get Add-ons...
  2. Enter the Add-on Code: 353547840 (or upstream: 1762336370)
  3. Restart Anki.

Manual Installation (.ankiaddon)

  1. Download the .ankiaddon package from GitHub releases.
  2. In Anki, go to Tools > Add-ons > Install from file...
  3. Select the file and restart Anki.

Compatibility

  • Anki 2.1.50+ up to latest Anki 24.x / 25.x+
  • Windows, macOS, and Linux
  • Qt6 & Qt5 compatible