In my app that helps keyboard shortcuts, I’ve carried out this to trace keyboard presses:
override func pressesBegan(_ presses: Set<UIPress>, with occasion: UIPressesEvent?) {
guard presses.rely == 1, let press = presses.first, let key = press.key else { return }
// deal with
}
The issue is that just a few keys (like L, Ok, R) do not work with Shift (each left and proper behave the identical). Once I press Shift + L, it is solely registered as Shift. Different keys work nicely with Shift.
Any thought why that is the case and the right way to clear up it? As a result of app setup, different methods of keyboard shortcut dealing with do not work nicely.