Skip to content

Commit

Permalink
handling keyboard error
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorVieiraZ committed Jun 12, 2024
1 parent 72a6427 commit 1a07b93
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/qml/components/private/MMBaseSingleLineInput.qml
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,14 @@ MMBaseInput {
background: Rectangle { color: __style.transparentColor }

onTextEdited: {
textFieldControl.focus = false
//textFieldControl.focus = false
root.textEdited( text )
}

onReleased: {
if ( root.editState !== "readOnly" ) {
console.log("RELEASED")
textFieldControl.focus = false
root.textClicked()
}
}
Expand Down
1 change: 1 addition & 0 deletions app/qml/inputs/MMSearchInput.qml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ MMPrivateComponents.MMBaseSingleLineInput {
property int emitInterval: 200
property bool showClearIcon: true
property string searchText: ""
property alias textFieldInput: root.textField

leftContent: MMComponents.MMIcon {
id: searchIcon
Expand Down
2 changes: 2 additions & 0 deletions app/qml/project/MMProjectController.qml
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,8 @@ Item {

function switchPage( tab, state ) {
tab.searchBarInput.focus = false // prevent app freezing following issue #3389
console.log ("FOCUS: ", tab.searchBarInput.textFieldInput.focus)
tab.searchBarInput.textFieldInput.focus = false
projectsPage.state = state
}
}
Expand Down

0 comments on commit 1a07b93

Please sign in to comment.