Skip to content

Commit

Permalink
refactor: merge modifier state with the current keyboard's modifier s…
Browse files Browse the repository at this point in the history
…tate after sending keys
  • Loading branch information
if-can committed Jan 7, 2025
1 parent 243c1fb commit 1663acd
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,7 @@ class CommonKeyboardActionListener(
}
}
}
val currentModifier = KeyboardSwitcher.currentKeyboard.modifier
val combinedModifiers = action.modifier or currentModifier
onKey(action.code, if (action.modifier == 0) currentModifier else combinedModifiers)
onKey(action.code, action.modifier or KeyboardSwitcher.currentKeyboard.modifier)
}
}
}
Expand Down

0 comments on commit 1663acd

Please sign in to comment.