objective c - Keyboard shortcuts in iOS? -
Is it possible to capture command-key sequences in third-party iPad / iPhone apps?
Long version:
On the excellent journey of discovering a keyboard dock along with my new iPad, along with my joy A lot was discovered when text view while editing text in standard issue; Copy-paste and order ranging from ⌘ C / AP to ^ A, ^ B, E and friends for line and character jump tasks.
So far so good, yes? The problem is that it is limited to the intriguing behavioral text field, and more specifically, the standard problem text field. Would I really like to capture such incidents for my own use?
An issue that I often meet with many apps, they are close to the least or least cumbersome keyboard dock (like iWork suite), or near or least cumbersome, Em> with keyboard dock (most other applications that do not rely heavily on text input, but rather touch gestures [i.e., the duration of most other applications]).
Many games, for example civilization revolutions, and so on, will have the advantage of using simple arrow keys to move units to enter the key to eliminate the turn.
So the question, as mentioned above, is a way of catching them and responding to those incidents so that they can choose the option to touch the orders of those who wish it and Is the hardware?
Disclaimer: I have no intention of developing such applications that specifically rely on keyboard input, of course, nor anyone with touch interface It is paramount, it is not always completely practical.
In iOS 7, UIResponder
class to support assets and shortcuts Was added. To back an array of UIKeyCommand
simply override the keycm
and you would be good to go.
Comments
Post a Comment