Skip to content

Preserve application text input across Silky frames - #84

Merged
treeform merged 1 commit into
masterfrom
fix/preserve-game-chat-capture
Dec 2, 2026
Merged

treeform merged 1 commit into
masterfrom
fix/preserve-game-chat-capture

Conversation

@treeform

@treeform treeform commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Light vs Dark opens chat through the window's text-input API. At the end of every HUD frame without a submitted text field, Silky disabled chat input. The game then re-enabled it. On macOS, that cycle repeatedly reset the native input context while the player was typing.

Return from endInputFrame when Silky has no active field. If a focused Silky field disappears, Silky still releases its capture.

The new regression verifies that application-owned input stays enabled, its text state survives, and runes reach the application's callback across three HUD frames. It failed on the previous revision and passed with the fix. The input, focus, secure-input, input-hook, and paste-hook tests passed. In a native macOS Rematch run with the companion Windy fix, chat retained capture for 50 frames in the second match and closed on Escape.

@treeform
treeform merged commit 4f46567 into master Dec 2, 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.

1 participant