Skip to content

Commit

Permalink
fix: not reset keyboard focus when searchEdit get focus
Browse files Browse the repository at this point in the history
keep searchEdit focus when flip page

log: as title
issue: linuxdeepin/developer-center#6398
  • Loading branch information
tsic404 committed Jan 8, 2024
1 parent ed64a72 commit 1c6880b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions qml/FullscreenFrame.qml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,15 @@ Control {
}
if (toPage < 0) {
flipPageDelay.start()
baseLayer.focus = true // reset keyboard focus when using mouse to flip page
if (!searchEdit.focus) { // reset keyboard focus when using mouse to flip page, but keep searchEdit focus
baseLayer.focus = true
}
pages.decrementCurrentIndex()
} else if (toPage > 0) {
flipPageDelay.start()
baseLayer.focus = true // reset keyboard focus when using mouse to flip page
if (!searchEdit.focus) { // reset keyboard focus when using mouse to flip page, but keep searchEdit focus
baseLayer.focus = true
}
pages.incrementCurrentIndex()
}
}
Expand Down

0 comments on commit 1c6880b

Please sign in to comment.