Disable Commands – Custom Key Binding in Command Palette

Disgrifiad

Disable Commands – Custom Key Binding gives you full control over the WordPress Command Palette (introduced in WordPress 6.9).

This plugin is essential if you need to:
* Resolve keyboard shortcut conflicts with other software or browser extensions.
* Simplify the admin interface for yourself or your clients.
* Prevent the accidental triggering of the command palette.
* Customize the default shortcut to better fit your personal workflow.

Features include:
1. Disable Command Palette: A simple toggle to completely disable the wp-commands script.
2. Custom Key Binding: Remap the command palette shortcut to any combination of modifier keys (Ctrl/Cmd, Alt, Shift) and a single letter, number, or punctuation key. For example, use Ctrl + Shift + P instead of the default Ctrl/Cmd + K.

All settings are managed from a single, user-friendly page in the WordPress admin.

Configuration

On the plugin’s settings page, you will find two main sections:

1. Disable Command Palette
* Option: Check this box to disable the WordPress admin command palette (Cmd+K / Ctrl+K).

2. Custom Key Binding
* Override Default Shortcut: Check this box to activate the custom shortcut feature.
* Shortcut Combination: Use the checkboxes to select your desired modifier keys (Ctrl, Shift, Alt, Cmd/Meta) and the input field to define a single character key (e.g., ‘k’, ‘p’, ‘/’). The default combination is Ctrl/Cmd + K.

Lluniau Sgrin

  • The main settings page.
    • The “Disable Command Palette” toggle.

Gosod

  1. Search WordPress org and Upload the plugin files to the /wp-content/plugins directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Navigate to Settings > Disable Commands to configure the plugin options.

Cwestiynau Cyffredin

Does this plugin disable the Command Palette in the Site Editor?

Currently, this plugin primarily targets the admin command palette script (wp-commands) in the WordPress dashboard.

Can I re-enable the palette after disabling it?

Yes. Simply uncheck the “Disable Command Palette” option on the settings page and save your changes.

Can I use multiple modifier keys for my custom shortcut?

Yes. You can select any combination of the available modifier keys (Ctrl, Cmd/Meta, Alt, Shift) along with a single character key.

What happens if I define a shortcut that’s already in use by my browser?

The plugin will assign the shortcut within WordPress, but browser shortcuts typically take priority. It is recommended to choose a combination not heavily used by your browser to avoid conflicts.

Adolygiadau

There are no reviews for this plugin.

Contributors & Developers

“Disable Commands – Custom Key Binding in Command Palette” is open source software. The following people have contributed to this plugin.

Cyfranwyr

Cofnod Newid

1.0.0

  • Initial release with core functionality:
    • Ability to completely disable the command palette.
    • Full custom key binding support to remap the shortcut.