Skip to content

Fix GUI dropping layout characters composed with Alt - #142

Merged
ernestrc merged 2 commits into
unstablebuild:mainfrom
vonglasow:right-option-branch
Sep 30, 2026
Merged

ernestrc merged 2 commits into
unstablebuild:mainfrom
vonglasow:right-option-branch

Conversation

@vonglasow

Copy link
Copy Markdown
Contributor

Most punctuation on a Mac AZERTY keyboard is composed with Option. The pipe, Option+Shift+L, arrived as an Alt+L shortcut with the character dropped, so it could not be typed at all.

Nothing below the editor separates the two cases: macOS marks the text of every Option chord as normal, so trusting that flag would have disabled every Alt shortcut instead. Only the user knows which meaning they intend, so the choice is theirs to declare.

Defaulting that choice would have removed working shortcuts from every config already on disk, so it stays unset until set.

@vonglasow
vonglasow force-pushed the right-option-branch branch 2 times, most recently from eb9cf30 to 5d33dc5 Compare September 27, 2026 19:10
Most punctuation on a Mac AZERTY keyboard is composed with Option. The
pipe, Option+Shift+L, arrived as an Alt+L shortcut with the character
dropped, so it could not be typed at all.

Nothing below the editor separates the two cases: macOS marks the text
of every Option chord as normal, so trusting that flag would have
disabled every Alt shortcut instead. Only the user knows which meaning
they intend, so the choice is theirs to declare.

Defaulting that choice would have removed working shortcuts from every
config already on disk, so it stays unset until set.

Signed-off-by: Alexis von Glasow <[email protected]>
X11 reports a modifier press with the mask from before it, so the reserved Alt key's own
press carried no Alt bit and was never tracked. The key transition now decides first, and
the reservation checks the physical mask so remapping <alt> no longer disables it.

Co-Authored-By: Rune Agent (claude/claude-opus-5-5) <[email protected]>
Signed-off-by: ernestrc <[email protected]>
@ernestrc
ernestrc enabled auto-merge (rebase) September 30, 2026 16:58
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 73.80952% with 22 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/term/gui/options.go 0.00% 13 Missing ⚠️
cmd/rune/main.go 20.00% 4 Missing ⚠️
cmd/rune/config.go 81.81% 2 Missing ⚠️
cmd/rune/bootstrap_handler.go 96.66% 1 Missing ⚠️
cmd/rune/presets.go 83.33% 1 Missing ⚠️
internal/term/gui/gui.go 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@ernestrc
ernestrc merged commit d84fd60 into unstablebuild:main Sep 30, 2026
8 checks passed
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.

3 participants