跳到内容

BT Keyboard Shortcuts

v1.0.4

bterp · 2026年3月23日 上架

Apple-style keyboard shortcut markup. Shortcode [btkbd] for ⌘⇧P-style output.

正在使用
10 以下
评分
暂无
累计下载
498
最近更新
2026年5月21日
需要 WordPress 5.8+已测试到 7.1.5PHP 7.4+

贡献者

BT Keyboard Shortcuts renders keyboard shortcuts in Apple-style symbols (⌘, ⇧, ⌥, ⌃) or as text (Command, Shift, Option, Control). Use the [btkbd] shortcode anywhere shortcodes are supported.

Using shortcuts in a post

In the block or classic editor, type the shortcode directly (e.g. [btkbd cmd shift p]), or use the formatting dropdown and choose ⌘ Insert keyboard shortcut to open a dialog where you pick modifiers and key and insert the generated shortcode.

Settings page

The plugin has a Settings page: click Settings next to the plugin on the Plugins screen, or go to Settings Keyboard Shortcuts. There you can toggle the + separator, modifier symbols vs text, key symbols, Mac vs Windows naming, and style presets (Default, Light, Dark, Modern).

Styling

To customize .btkbd styles, use WordPress core Additional CSS in Appearance Customize (or the Site Editor equivalent for block themes).

Windows compatibility

On the Settings page, use Mac / Windows symbols and names to choose Windows (⊞ Win, Alt) instead of Mac (⌘ Command, ⌥ Option) so shortcuts render with Windows-style symbols and labels for your audience.

Syntax

[btkbd cmd shift p] → ⇧⌘P (symbols, combined)
[btkbd $@p] → ⇧⌘P (symbol shorthand input)
[btkbd Command-Shift-P] → ⇧⌘P (hyphenated text input)
[btkbd right] → → Right Arrow

Display format (symbols/text and plus separators) is controlled by plugin settings.

Supported modifiers

cmd/command, ctrl/control, opt/alt, shift, fn, hyper

You can also use symbol shorthand in the shortcode: $ (shift), @ (command), ~ (option), ^ (control). For example, [btkbd @$p] renders as ⇧⌘P.

Modifier keys are automatically rearranged to match the order recommended by Apple in their Human Interface Guidelines (e.g. Control, Option, Shift, Command before the key), regardless of the order you type them in the shortcode.

Key names

tab, return, enter, delete, esc, right, left, up, down, pgup, pgdn, home, end, space, caps, f1-f12

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums