Skip to content

Commit

Permalink
chore: reset keyboard focus when using wheel to flip page
Browse files Browse the repository at this point in the history
在全屏启动器里使用鼠标翻页时,重置键盘焦点。

Issue: linuxdeepin/developer-center#6361
Log:
  • Loading branch information
BLumia committed Dec 6, 2023
1 parent 145a52f commit a3606ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qml/FullscreenFrame.qml
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,11 @@ Control {
}
if (toPage < 0) {
flipPageDelay.start()
baseLayer.focus = true // reset keyboard focus when using mouse to flip page
pages.decrementCurrentIndex()
} else if (toPage > 0) {
flipPageDelay.start()
baseLayer.focus = true // reset keyboard focus when using mouse to flip page
pages.incrementCurrentIndex()
}
}
Expand Down

0 comments on commit a3606ad

Please sign in to comment.