wordpress-mobile / wordpress-mobile/GutenbergKit

Support Command Palette on iPad with hardware keyboard

Open
#453 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Gutenberg iOS iPad
Dominant language
JavaScript
Stars
29
Forks
6
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Summary

@wordpress/commands ships a self-contained CommandMenu component that provides a Cmd+K command palette — but GutenbergKit never mounts it. On iPads with hardware keyboards, this means users have no access to the command palette at all.

Context

The package is already a direct dependency (used as a global in wordpress-globals.js), and as of @wordpress/commands 1.43.0 (#450) the palette now includes "Recently Used" command tracking. None of this is reachable today.

What's needed

  1. Render <CommandMenu /> in the component tree (e.g. in src/components/layout/index.jsx) — this is the minimal change to make Cmd+K work.
  2. Register commands — the palette will be empty unless commands are registered via useCommand() / useCommandLoader(). Need to determine which commands make sense in the native app context (e.g. block insertion, navigation, settings toggles).
  3. Verify style loading — confirm that @wordpress/commands/build-style/style.css is bundled correctly.
  4. Verify preferences persistence — the "recently used" feature writes to @wordpress/preferences. Need to confirm the persistence layer is wired up so recents survive across sessions.

Scope

This is only relevant for iPad with a hardware keyboard — there's no practical way to trigger Cmd+K on phones or tablets without a keyboard attached.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/components/layout/index.jsx and inspect how @wordpress/commands is exposed through wordpress-globals.js. Determine which native-app commands should be registered, then verify the CommandMenu style.css bundle and @wordpress/preferences persistence. Done means the palette is reachable with Cmd+K on iPad hardware keyboards, has useful commands, and preserves recently used items.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.