Skip to content

Commit

Permalink
fix: reset keyboard focus even searchEdit 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 authored and deepin-bot[bot] committed Jan 10, 2024
1 parent bdbb1d3 commit f800610
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 f800610

Please sign in to comment.