Keep the mobile keyboard down through a slow channel load #48
No reviewers
Labels
No labels
bug
docs
enhancement
good first issue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pedromcaraujo/forge!48
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-mobile-keyboard-channel-switch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Switching channels on a phone pops the soft keyboard again — a regression of the
inputmode="none"fix (2411786).suppressTermKeyboardonly re-appliedinputmode="none"for 250ms after the iframeload. Since #41 we know xterm often builds its textarea well past half a second (ttyd boots, websocket reconnects), so the suppression ran out before the textarea existed and xterm's own focus brought the keyboard up.Now, until the user taps the terminal:
focusinhandler setsinputmode="none"synchronously inside xterm'sfocus()call, before Android decides to show the IME;MutationObservertags the textarea as soon as it's inserted;applyTermThemeWhenReady.First tap on the terminal still restores normal input and opens the keyboard. Desktop / keyboard-driven paths (
focusTerm) are untouched.Test plan