hide the keyboard when lose focus
shouldn't be necessary, but the scene seems to not emit all needed hide signals
This commit is contained in:
parent
be68daef28
commit
1014c8572e
@ -187,6 +187,11 @@ Item {
|
||||
visible: textEdit.text == "" && !textArea.activeFocus
|
||||
opacity: 0.5
|
||||
}
|
||||
onActiveFocusChanged: {
|
||||
if (!textField.activeFocus) {
|
||||
textInput.closeSoftwareInputPanel()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -155,6 +155,11 @@ Item {
|
||||
color: theme.textColor
|
||||
enabled: textField.enabled
|
||||
clip: true
|
||||
onActiveFocusChanged: {
|
||||
if (!textField.activeFocus) {
|
||||
textInput.closeSoftwareInputPanel()
|
||||
}
|
||||
}
|
||||
|
||||
// Proxying keys events is not required by the
|
||||
// common API but is desired in the plasma API.
|
||||
|
Loading…
Reference in New Issue
Block a user