Watch
1
0
Fork
You've already forked souveraine
0

chat: raise the keyboard when the field is tapped

This commit is contained in:
Fimeg 2026-08-11 18:24:24 -04:00
commit 692455c8f0

View file

@ -590,6 +590,26 @@ Inline w/ backslash and round brackets \\(e^{i\\pi} + 1 = 0\\)
background: null
// Input-method focus is evidence that typing is
// possible, not a reliable request to show the OSK.
// ViewTop preserves focus across a keyboard dismiss,
// so a second tap may not produce another focus edge.
// Drive both paths: focus raises it the first time;
// every deliberate tap raises it again after a user
// dismissal. The user-close path remains authoritative
// and no hold is taken merely because chat is open.
onActiveFocusChanged: {
if (activeFocus)
GlobalStates.oskOpen = true;
}
TapHandler {
onTapped: {
messageInputField.forceActiveFocus();
GlobalStates.oskOpen = true;
}
}
onTextChanged: {
// Handle suggestions
if (messageInputField.text.length === 0) {