Post

Replies

Boosts

Views

Activity

Reply to Arrow keys don't seem to be working in UITextView embed in UICollectionViewCell
I'm having the similar view hierarchy(UITextView and UITextField inside the UICollectionViewCell) from my iPad application and the arrow keys works well till iOS 14. However, the same code fails to execute when tried with iOS 15. I'm using "wantsPriorityOverSystemBehavior = true" to read/enable the arrow key presses with iOS 15 and this works well. The only problem is when the UITextView and UITextField is in edit mode. Everything works well except the arrow keys which results in the restricted cursor movements. Any assistance on this will be greatly appreciated. Thank you in advance.
Topic: App & System Services SubTopic: General Tags:
Dec ’21
Reply to Keyboard shortcuts with UIKeyCommand in iPadOS 15 beta
Here is the sample code from the viewDidLoad method.         if #available(iOS 13.0, *) {             let upKeyCommand = UIKeyCommand(title: NSLocalizedString("Up", comment: "Up"), action: #selector(handleExternalKeyPress(key:)), input: UIKeyCommand.inputUpArrow, modifierFlags: [])             if #available(iOS 15.0, *) {                 upKeyCommand.wantsPriorityOverSystemBehavior = true             } else {                 // Fallback on earlier versions             }             addKeyCommand(upKeyCommand)         } else {             // Fallback on earlier versions         } Thank you @sjs for your inputs.
Topic: App & System Services SubTopic: Hardware Tags:
Dec ’21
Reply to Arrow keys don't seem to be working in UITextView embed in UICollectionViewCell
I'm having the similar view hierarchy(UITextView and UITextField inside the UICollectionViewCell) from my iPad application and the arrow keys works well till iOS 14. However, the same code fails to execute when tried with iOS 15. I'm using "wantsPriorityOverSystemBehavior = true" to read/enable the arrow key presses with iOS 15 and this works well. The only problem is when the UITextView and UITextField is in edit mode. Everything works well except the arrow keys which results in the restricted cursor movements. Any assistance on this will be greatly appreciated. Thank you in advance.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’21
Reply to Keyboard shortcuts with UIKeyCommand in iPadOS 15 beta
Here is the sample code from the viewDidLoad method.         if #available(iOS 13.0, *) {             let upKeyCommand = UIKeyCommand(title: NSLocalizedString("Up", comment: "Up"), action: #selector(handleExternalKeyPress(key:)), input: UIKeyCommand.inputUpArrow, modifierFlags: [])             if #available(iOS 15.0, *) {                 upKeyCommand.wantsPriorityOverSystemBehavior = true             } else {                 // Fallback on earlier versions             }             addKeyCommand(upKeyCommand)         } else {             // Fallback on earlier versions         } Thank you @sjs for your inputs.
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Dec ’21