Skip to content

fix(mobile): hide the New note form's key hints on the phone (ZenNotes/zennotes#842) - #83

Merged
adibhanna merged 1 commit into
mainfrom
fix/842-keyboard-hints
Sep 23, 2026
Merged

adibhanna merged 1 commit into
mainfrom
fix/842-keyboard-hints

Conversation

@adibhanna

Copy link
Copy Markdown
Contributor

The New note form that the note search opens from its Create row (core 2.54) shows the desktop's hardware-keyboard hints on the phone: ↑↓ pick, ↵ create and esc back in the footer beside Back and Create, and a Shift+↵ chip inside the Open it button when the name already exists. Filed as ZenNotes/zennotes#842.

The rule that hides every other palette footer could not take this one, because the form's footer also holds Back and Create. The core now marks the hint group and the chip with data-keyboard-hints (ZenNotes/zennotes@1488f50b, on the desktop's v2.55.0 branch), and this PR adds the one rule that hides whatever carries that marker on the phone layout, next to the palette-footer rule in src/ui-mobile/mobile.css. Until the shell adopts a core with the marker the rule matches nothing, so it can land ahead of the adoption; a tablet with a keyboard keeps the hints, since the rule is scoped to .zn-phone.

Verified on the iPhone 17 Pro Max (iOS 27) simulator with a local core candidate packed from that commit and adopted as a try-out (ZEN_ALLOW_DIRTY_CORE=1 npm run core:adopt -- --from ..., the shell restored to the published 2.54.1 set afterwards, boundaries:check green): menu, Search, a new name, the Create row, and the footer shows Back and Create only; with an existing note's name the red "already exists" line shows and the button reads just "Open it". The Android rule is the same text; the emulator was not booted for it.

…s/zennotes#842)

The New note form that the note search opens from its Create row (core
2.54) showed the desktop's hardware-keyboard hints on the phone: "↑↓ pick",
"↵ create" and "esc back" in the footer beside Back and Create, and a
"Shift+↵" chip inside the Open it button when the name already exists. A
phone has no hardware keyboard, so they were noise in a footer that sits
right above the soft keyboard.

The rule that hides every other palette footer could not take this one,
because the form's footer also holds Back and Create. The core now marks
the hint group and the chip with `data-keyboard-hints`, and this rule hides
whatever carries that marker on the phone layout. Until the shell adopts a
core with the marker the rule matches nothing; a tablet with a keyboard
keeps the hints, since the rule is scoped to `.zn-phone`.

Seen on the iPhone 17 Pro Max simulator with a local core candidate: the
footer shows Back and Create only, and the button reads just "Open it".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant