Repository navigation
Conversation
The key bar's CTRL and ALT apply to one character and then release. That cannot express a chord that repeats, such as Claude Code's double Ctrl+C to exit: the second ^C has to arrive within a second, and re-arming CTRL between the two does not fit in that window. A second tap within 500 ms of arming a modifier now locks it - shown with a ring - and it then applies to every character until it is tapped again. A single tap still behaves as before.
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.
Summary
The key bar's CTRL and ALT apply to the next character and then release. That cannot express a chord that repeats — most notably Claude Code's double
Ctrl+Cto exit, where the second^Chas to arrive within a second; re-arming CTRL between the two does not fit in that window.A second tap within 500 ms of arming a modifier now locks it: the button gets a ring, and the modifier applies to every following character until the button is tapped again. A single tap behaves exactly as before.
TerminalSession.tapModifier(), next to the existingpendingCtrl/pendingAltstate;handleInput()only clears a modifier that is not locked.^C ^Dinstead of locking by accident.Testing
npm run typecheckandnpm run buildpass.c→^C, thenc→c(released);cc→^C^C, still locked; tap CTRL,c→c(released);d, tap CTRL,dquickly →^D^D, not locked;bf→ESC b ESC f.Ctrl+Cexits Claude Code.npm test:resize reaches the PTYanda dropped connection keeps the shell alive…fail on unmodifiedmaintoo in my environment (Debian 13, Node 24). This change only touches the frontend.These three mobile PRs and #18 touch nearby code but merge together without conflicts in any order.