Skip to content

Commit

Permalink
Ignore key released if autorepeat in slider switch
Browse files Browse the repository at this point in the history
  • Loading branch information
unjambonakap authored and DonLakeFlyer committed Dec 9, 2024
1 parent 396a719 commit 51ce11f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QmlControls/SliderSwitch.qml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Rectangle {
}

Keys.onReleased: (event) => {
if (visible && event.key === Qt.Key_Space) {
if (visible && event.key === Qt.Key_Space && !event.isAutoRepeat) {
event.accepted = true
resetSpaceBarSliding()
}
Expand Down

0 comments on commit 51ce11f

Please sign in to comment.