mirror of
https://github.com/stablyai/orca.git
synced 2026-10-20 16:03:20 +00:00
Record why post-blur letter releases arm the candidate guard
The pinned behavior looks like a false positive until you check what ignoring it would cost on the first commit after focus. Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -55,6 +55,10 @@ function acquirePhysicalKeyTracker(
|
||||
pressedCodes.delete(code)
|
||||
}
|
||||
}
|
||||
// A key held across the blur then released on return reads as orphaned and arms the
|
||||
// guard for one digit. Deliberate: not clearing would strand the code as pressed, and
|
||||
// treating post-blur keyups as unknowable would miss the orphan on the first commit
|
||||
// after focus, which is the common case.
|
||||
const reset = (): void => pressedCodes.clear()
|
||||
// Why: bubble-phase keyup cleanup runs after xterm's target handler, so the
|
||||
// pane can still classify that release against the shared pressed-key set.
|
||||
|
||||
Reference in New Issue
Block a user