Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/qml/components/private/MMBaseSingleLineInput.qml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ MMBaseInput {

onTextEdited: root.textEdited( text )

onPreeditTextChanged: if( __androidUtils.isAndroid ) Qt.inputMethod.commit() // to avoid Android's unconfirmed text

onReleased: {
if ( root.editState !== "readOnly" ) {
root.textClicked()
Expand Down
1 change: 1 addition & 0 deletions app/qml/form/editors/MMFormTextMultilineEditor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ MMPrivateComponents.MMBaseInput {
}

onTextChanged: root.editorValueChanged( textArea.text, textArea.text === "" )
onPreeditTextChanged: if( __androidUtils.isAndroid ) Qt.inputMethod.commit() // to avoid Android's unconfirmed text
}

FontMetrics {
Expand Down
9 changes: 7 additions & 2 deletions app/qml/inputs/MMSearchInput.qml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ MMPrivateComponents.MMBaseSingleLineInput {
}
else
{
root.searchText = root.text
// trim the last whitespace from the user's input
root.searchText = root.text.replace( /\s+$/, "" )
}
}

Expand All @@ -70,7 +71,11 @@ MMPrivateComponents.MMBaseSingleLineInput {
interval: root.emitInterval
running: false

onTriggered: root.searchText = root.text
onTriggered: {
// when using predictive text suggestions, a whitespace is sometimes added after the word
// trim the last whitespace from the user's input
root.searchText = root.text.replace( /\s+$/, "" )
}
}

/**
Expand Down
Loading