l33t commandos never use the mouse!
####esc
key
- Commando roll out of UITextFields/UITextViews
- Commando roll out of UIAlertviews
####f
key
- Find all tapable fields on screen - badass vimium style
####delete
key
- Pop a cap in UINavigationController (trigger back)
####arrow
keys
- Scroll like a boss
- Scrolls the 'default' (largest frame) UIScrollView
Use the wonderful CocoaPods.
In your Podfile
pod 'Commando'
To listen to keyboard events your app must use the CMDCommandoApplication
custom UIApplication subclass. You can reliably leave that in for release as any non-simulator builds will only compile to an empty UIApplication subclass.
In your main.m
:
#import "CMDCommandoApplication.h"
int main(int argc, char *argv[]) {
@autoreleasepool {
return UIApplicationMain(argc, argv,
NSStringFromClass([CMDCommandoApplication class]),
NSStringFromClass([MYAppDelegate class]));
}
}
- Select specific UIScrollView to scroll
- Tab between tapable UIViews ordered by view frame, then hit enter key to tap,
- UIPanGestureRecognizer, UISwipeGestureRecognizer support
- Inspired by vimium
- Code for listening to keyboard events ORSimulatorKeyboardAccessor
- Code for creating fake UITouches KIF