Skip to content

Instantly share code, notes, and snippets.

@thenextman
thenextman / gist:e886dfe4408c20072a88f80d2df5d60f
Created November 25, 2016 22:54 — forked from steventroughtonsmith/gist:7515380
iOS 7 UIKeyCommand keydown/keyup and keycode input implementation for a UIResponder. Private API, of course…
-(BOOL)canBecomeFirstResponder
{
return YES;
}
-(UIKeyCommand *)_keyCommandForEvent:(UIEvent *)event // UIPhysicalKeyboardEvent
{
NSLog(@"keyCommandForEvent: %@\n\
type = %i\n\
keycode = %@\n\