Skip to content

Commit

Permalink
fix: call the correct method
Browse files Browse the repository at this point in the history
  • Loading branch information
cmhulbert committed Jun 24, 2024
1 parent a1a2406 commit 53edffd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ interface NamedKeyBinding {

fun matches(event : KeyEvent, keyTracker : KeyTracker?, keysExclusive: Boolean = true) : Boolean {
return if (keysExclusive) {
keyTracker?.areKeysDown(this) ?: primaryCombination.match(event)
keyTracker?.areOnlyTheseKeysDown(*keyCodes.toTypedArray()) ?: primaryCombination.match(event)
} else {
val codesMatchIfCodeCombo = (primaryCombinationProperty.get() as? KeyCodeCombination)?.code?.let { it == event.code } ?: true
codesMatchIfCodeCombo && event.modifierCodes.containsAll(primaryCombinationProperty.get().modifierCodes)
Expand Down

0 comments on commit 53edffd

Please sign in to comment.