Post

Replies

Boosts

Views

Activity

Comment on Keyboard shortcuts with UIKeyCommand in iPadOS 15 beta
I have a similar requirement and I am unable to get any event of the pressed key from the mentioned below delegate method while running the application on the iOS 15.0 and executed with the external keyboard attached to my iPad Pro 12.9-inch device. internal override func pressesEnded(_ presses: Set, with event: UIPressesEvent?) { } However, the same code works well if I switch to iOS 14.x version and I can listen to any pressed key event from the external keyboard. I really appreciate the provided information regarding setting wantsPriorityOverSystemBehavior to YES. Could you please share further details(sample code will be a great help) on where/how to access wantsPriorityOverSystemBehavior property as I am getting "Instance member 'wantsPriorityOverSystemBehavior' cannot be used on type 'UIKeyCommand'; did you mean to use a value of this type instead?" error upon accessing wantsPriorityOverSystemBehavior property? Many thanks in advance!
Topic: App & System Services SubTopic: Hardware Tags:
Nov ’21