chat: raise the keyboard when the field is tapped
This commit is contained in:
parent
41d13c9468
commit
692455c8f0
1 changed files with 20 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue