Skip to content

On-screen keyboard: reopen on a re-tapped field in any Qt app - #74

Merged
henrikklee merged 2 commits into
mainfrom
osk-field-on-press
Nov 18, 2026
Merged

henrikklee merged 2 commits into
mainfrom
osk-field-on-press

Conversation

@henrikklee

Copy link
Copy Markdown
Contributor

With Qt's text-input focus fix (packages #7) the keyboard closes on a tap outside, but tapping the same field again didn't reopen it: Qt still believes the keyboard is up, and on a re-tapped field sends show_input_panel at once but enables its text input only with the next press. Now a field taking focus while the finger is down, or an app's request right after a touch, opens it; focus moved by an app on its own or after the finger lifts still doesn't, and an open keyboard isn't shown twice. Tests: 30 pass. Confirmed on the simulator by Henrik: Folio path and search, Omactivity search, many cycles each; Apps and app launches pop nothing.

Assisted-by: LLM

With Qt's text-input focus fix, a field going off closes the keyboard, but
Qt still believes the keyboard is up and asks nothing when the same field
is tapped again, so it stayed closed. A field that takes focus while the
finger is down was tapped: it opens the keyboard whatever its text-input
version. Focus moved by an app on its own or after the finger lifted
still does not, and a keyboard already up is not shown twice.

Assisted-by: LLM
Qt 6.12 on a field tapped again after focus went elsewhere sends
show_input_panel at once but enables its text input only with the next
press, and disables it again right after (simulator facts log). The
policy waited for the field and never opened. A request right after a
touch now opens the keyboard by itself: Qt asks only for a text item it
focused, and the keyboard types through key presses either way.

Assisted-by: LLM
@henrikklee
henrikklee merged commit 1fa0867 into main Nov 18, 2026
9 checks passed
@henrikklee
henrikklee deleted the osk-field-on-press branch November 18, 2026 20:19
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