ctrl + enter seems not working with UIKeyCommand

221 views Asked by At

I am trying to interfere with the external hardware keyboard's inputs on an iOS system.

Everything works well except for one problem: After attempt to register CTRL + ENTER with code

UIKeyCommand(input: "\r", modifierFlags: [.control], action:...)

press the combination won't trigger the action, which means it seems not to register itself. However, "\r" + [.command] and "\r" + [.alternate] work well.

What's wrong with it? How can I register CTRL + ENTER from the external keyboard?

0

There are 0 answers