Repository navigation
omamobile-shell 0.2.116: the back gesture sends Escape by its key code - #637
Merged
Merged
Conversation
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>
9 tasks done
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 answerskey = "Escape"withsend_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'sKEY_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:
Escape,escape,ESCAPEsend_key_state: key not foundEsccode:9Reported first by den-kloot on a Pixel 9a in #582. My comment there that Back works on main was wrong.
packages/omamobile-shell/test/allpasses. Not yet run as an installed package: the gesture itself still needs a swipe on a phone.🤖 Generated with Claude Code