mirror of
https://github.com/invoke-ai/InvokeAI
synced 2026-03-02 04:59:06 +01:00
* feat: remove the ModelFooter in the ModelView and add the Delete Model Button from the Footer into the View * forget to run pnpm fix * chore(ui): reorder the model view buttons * Initial plan * Add customizable hotkeys infrastructure with UI Co-authored-by: dunkeroni <3298737+dunkeroni@users.noreply.github.com> * Fix ESLint issues in HotkeyEditor component Co-authored-by: dunkeroni <3298737+dunkeroni@users.noreply.github.com> * Fix knip unused export warning Co-authored-by: dunkeroni <3298737+dunkeroni@users.noreply.github.com> * Add tests for hotkeys slice Co-authored-by: dunkeroni <3298737+dunkeroni@users.noreply.github.com> * Fix tests to actually call reducer and add documentation Co-authored-by: dunkeroni <3298737+dunkeroni@users.noreply.github.com> * docs: add comprehensive hotkeys system documentation - Created new HOTKEYS.md technical documentation for developers explaining architecture, data flow, and implementation details - Added user-facing hotkeys.md guide with features overview and usage instructions - Removed old CUSTOMIZABLE_HOTKEYS.md in favor of new split documentation - Expanded documentation with detailed sections on: - State management and persistence - Component architecture and responsibilities - Developer integration * Behavior changed to hotkey press instead of input + checking for allready used hotkeys --------- Co-authored-by: blessedcoolant <54517381+blessedcoolant@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: dunkeroni <3298737+dunkeroni@users.noreply.github.com> Co-authored-by: Lincoln Stein <lincoln.stein@gmail.com>
2.7 KiB
2.7 KiB
Customizable Hotkeys
InvokeAI allows you to customize all keyboard shortcuts (hotkeys) to match your workflow preferences.
Features
- View All Hotkeys: See all available keyboard shortcuts in one place
- Customize Any Hotkey: Change any shortcut to your preference
- Multiple Bindings: Assign multiple key combinations to the same action
- Smart Validation: Built-in validation prevents invalid combinations
- Persistent Settings: Your custom hotkeys are saved and restored across sessions
- Easy Reset: Reset individual hotkeys or all hotkeys back to defaults
How to Use
Opening the Hotkeys Modal
Press Shift+? or click the keyboard icon in the application to open the Hotkeys Modal.
Viewing Hotkeys
In View Mode (default), you can:
- Browse all available hotkeys organized by category (App, Canvas, Gallery, Workflows, etc.)
- Search for specific hotkeys using the search bar
- See the current key combination for each action
Customizing Hotkeys
-
Click the Edit Mode button at the bottom of the Hotkeys Modal
-
Find the hotkey you want to change
-
Click the pencil icon next to it
-
The editor will appear with:
- Input field: Enter your new hotkey combination
- Modifier buttons: Quick-insert Mod, Ctrl, Shift, Alt keys
- Help icon (?): Shows syntax examples and valid keys
- Live preview: See how your hotkey will look
-
Enter your new hotkey using the format:
mod+a- Mod key + A (Mod = Ctrl on Windows/Linux, Cmd on Mac)ctrl+shift+k- Multiple modifiersf1- Function keysmod+enter, ctrl+enter- Multiple alternatives (separated by comma)
-
Click the checkmark or press Enter to save
-
Click the X or press Escape to cancel
Resetting Hotkeys
Reset a single hotkey:
- Click the counter-clockwise arrow icon that appears next to customized hotkeys
Reset all hotkeys:
- In Edit Mode, click the Reset All to Default button at the bottom
Hotkey Format Reference
Valid Modifiers:
mod- Context-aware: Ctrl (Windows/Linux) or Cmd (Mac)ctrl- Control keyshift- Shift keyalt- Alt key (Option on Mac)
Valid Keys:
- Letters:
a-z - Numbers:
0-9 - Function keys:
f1-f12 - Special keys:
enter,space,tab,backspace,delete,escape - Arrow keys:
up,down,left,right - And more...
Examples:
- ✅
mod+s- Save action - ✅
ctrl+shift+p- Command palette - ✅
f5, mod+r- Two alternatives for refresh - ❌
mod+- Invalid (no key after modifier) - ❌
shift+ctrl+- Invalid (ends with modifier)
For Developers
For technical implementation details, architecture, and how to add new hotkeys to the system, see the Hotkeys Developer Documentation.