Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Modal Keys Remapper

naoki-mizunonaoki-mizuno30 downloads

Customize keyboard shortcuts for navigating modal dialogs and suggestion lists.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates7

An Obsidian plugin that allows you to customize keyboard shortcuts for navigating modal dialogs and suggestion lists.

Features

  • Customizable Navigation Keys: Remap keys for moving up/down in modal selections (default: Ctrl+n/Ctrl+p)
  • Modal Confirm/Close Shortcut: Configure custom keys to confirm/close in modals (default: Obsidian default)
  • Target Specific Elements: Define which CSS classes trigger the custom keybindings
  • Multiple Keyboard Shortcuts: Configure multiple shortcuts for each action (up to 10 per action)

Default Keybindings

  • Next (Move Down): Ctrl+n → Arrow Down
  • Previous (Move Up): Ctrl+p → Arrow Up
  • Confirm: not set → Uses Obsidian default (Enter) to confirm/accept in modal
  • Close Modal: not set → Uses Obsidian default (Escape) to close modal

Note About Explicitly Setting the Confirm/Close Shortcuts

You may observe some issues when you explicitly set the confirm/close shortcuts to the Obsidian default keys (e.g., Enter for confirm, and Escape for close) and set a target that makes the shortcut effective in the editor (e.g., .app-container or .cm-editor). In this case, the key is processed twice (once by the Obsidian app, and once more due to this plugin sending the Enter key event), resulting in two lines added from a single Enter key press.

In short, it is recommended to only set shortcuts that you would like to use and leave unused actions unset.

Settings

Navigate to Settings → Modal Keys Remapper to customize:

  1. Navigation Keys:
    • Click "Record" next to each shortcut and press your desired key combination
    • Add multiple shortcuts by clicking the "+" button (appears when all shortcuts are set)
    • Remove shortcuts by clicking the "−" icon (clears value when only one exists, removes when multiple exist)
    • Each action supports up to 10 shortcuts
  2. Target CSS Classes: Specify which modal elements should respond to your custom keys (one per line)
    • Default: .suggestion-container and .modal-container

Notes:

  • Hotkeys take precedence over this plugin's settings.
  • Duplicate keys are removed automatically.

How It Works

The plugin listens for keyboard events when specific modal elements are present in the DOM. When you press a configured key combination, it dispatches the corresponding arrow key, enter key, or escape key event to navigate, confirm, or close in the modal.

If you would like to add more elements for the shortcut to be effective in, open the developer tool (Ctrl+Shift+i or Cmd+Shift+i) to find the class name, then append that in the Target CSS classes setting.

Installation

From Obsidian Community Plugins

  1. Open Settings in Obsidian
  2. Navigate to Community plugins and disable Safe mode
  3. Click Browse and search for "Modal Keys Remapper"
  4. Click Install and then Enable

Manual Installation

  1. Download the latest release from the releases page
  2. Extract the files to your vault's plugins folder: <vault>/.obsidian/plugins/obsidian-modal-keys/
  3. Reload Obsidian
  4. Enable the plugin in Settings → Community plugins

Development

Setup

# Clone the repository
git clone https://github.com/naoki-mizuno/obsidian-modal-keys.git

# Install dependencies
npm install

# Start development build (watch mode)
npm run dev

Building

# Production build
npm run build

For development, you can also place the repository folder directly in your vault's .obsidian/plugins/ folder and run npm run dev to automatically rebuild on changes.

Credits

This plugin is largely based on obsidian-command-palette-keys and the discussion at the Obsidian forum.

License

MIT License - see LICENSE for details.

75%
HealthGood
ReviewCaution
About
Remap keyboard shortcuts for navigating modal dialogs and suggestion lists, including move up/down and confirm/close actions. Define target CSS classes to scope shortcuts and assign multiple shortcuts per action (up to 10) for flexible modal navigation.
HotkeysNavigationCSS
Details
Current version
1.2.2
Last updated
5 months ago
Created
5 months ago
Updates
7 releases
Downloads
30
Compatible with
Obsidian 1.10.6+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
naoki-mizunonaoki-mizuno
github.com/naoki-mizuno
GitHubnaoki-mizuno
  1. Community
  2. Plugins
  3. Hotkeys
  4. Modal Keys Remapper

Related plugins

Leader Hotkeys

Add leader hotkey support to any command (like tmux or vim).

Insert Heading Link

Add a command to create a link to a heading.

Footnote Shortcut

Makes creating footnotes more fun!

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

Homepage

Open a note, base, or workspace on startup, or set it for quick access later.

Recent Files

Display a list of recently opened files.

Vertical Tabs

Offer an alternative view that displays open tabs vertically, allowing users to group and organize tabs for a better navigation experience.

Quick Switcher++

Enhanced Quick Switcher, search open panels, and symbols.

Style Settings

Adjust theme, plugin, and snippet CSS variables.

Creases

Tools for effectively folding Markdown sections.