Skip to content

Commit

Permalink
#479 don't allow Repeat and Hold Down to be turned on at the same time
Browse files Browse the repository at this point in the history
  • Loading branch information
sds100 committed Oct 28, 2020
1 parent 94d1ee6 commit e558985
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,10 @@ class ActionBehavior(action: Action, @Trigger.Mode triggerMode: Int, triggerKeys
repeat.value = value

holdDown.isAllowed = !value

if (value) {
setValue(ID_HOLD_DOWN, false)
}
}

ID_SHOW_VOLUME_UI -> showVolumeUi.value = value
Expand All @@ -374,6 +378,10 @@ class ActionBehavior(action: Action, @Trigger.Mode triggerMode: Int, triggerKeys
holdDown.value = value

repeat.isAllowed = !value

if (value) {
setValue(ID_REPEAT, false)
}
}
}

Expand Down

0 comments on commit e558985

Please sign in to comment.