Skip to content

omamobile-shell 0.2.116: the back gesture sends Escape by its key code - #637

Merged
derekross merged 1 commit into
mainfrom
back-escape-keycode
Nov 10, 2026
Merged

derekross merged 1 commit into
mainfrom
back-escape-keycode

Conversation

@derekross

Copy link
Copy Markdown
Owner

What was wrong

The back gesture did nothing, anywhere. It sends Escape through Hyprland's send_key_state, by name, and Hyprland 0.57.0 answers key = "Escape" with send_key_state: key not found. The swipe armed and ticked, and no key was sent. The dispatch's answer goes to /dev/null, so nothing showed it.

The fix

Send code:9 (Escape: evdev's KEY_ESC + 8). A code doesn't depend on the key's name or the keyboard layout.

Evidence

Pixel 7 Pro, 2026-11-10, hyprland 0.57.0-3.2, omamobile-shell 0.2.114, the dispatch run by hand in the session:

key answer
Escape, escape, ESCAPE send_key_state: key not found
Esc ok
code:9 ok

Reported first by den-kloot on a Pixel 9a in #582. My comment there that Back works on main was wrong.

packages/omamobile-shell/test/all passes. Not yet run as an installed package: the gesture itself still needs a swipe on a phone.

🤖 Generated with Claude Code

The gesture sent Escape through Hyprland's send_key_state by name. Hyprland
0.57.0 answers key = "Escape" with "send_key_state: key not found" (and
the same for "escape"; "Esc" and "code:9" are accepted), so the swipe
armed, ticked and sent nothing: Back did nothing anywhere. The dispatch's
answer goes to /dev/null, which is why nothing showed it.

It now sends code:9 (Escape: evdev's KEY_ESC + 8), which doesn't depend on
the key's name or the keyboard layout.

Reported by den-kloot on a Pixel 9a (#582) and confirmed on a Pixel 7 Pro
on 2026-11-10 (hyprland 0.57.0-3.2, omamobile-shell 0.2.114): by name
"key not found", by code "ok".

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@derekross
derekross merged commit f0c9b7a into main Nov 10, 2026
2 checks passed
@derekross
derekross deleted the back-escape-keycode branch November 10, 2026 20:42
robertzas pushed a commit to robertzas/omarchy-mobile that referenced this pull request Nov 14, 2026
derekross#637)

The gesture sent Escape through Hyprland's send_key_state by name. Hyprland 0.57.0 answers key = "Escape" with "send_key_state: key not found" ("Esc" and "code:9" are accepted), so the swipe armed, ticked and sent nothing: Back did nothing anywhere. The dispatch's answer goes to /dev/null, which is why nothing showed it.

It now sends code:9 (Escape: evdev's KEY_ESC + 8), which doesn't depend on the key's name or the keyboard layout.

Reported by den-kloot on a Pixel 9a (derekross#582). Confirmed and tested on a Pixel 7 Pro on 2026-11-10 (hyprland 0.57.0-3.2): by name "key not found", by code "ok"; with 0.2.116 installed the swipe closes dialogs and sheets again. Apps that don't treat Escape as back are a separate piece of work.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
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