khakiloveyty / Commando

Navigate the iOS simulator with the keyboard. Ditch your mouse and GO FULL COMMANDO!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Commando

l33t commandos don't wear undies and never use the mouse!

Demo

Features

####esc key

  • Commando roll out of UITextFields/UITextViews
  • Commando roll out of UIAlertviews
  • Commando roll out of UIActionSheets

####f key

  • Be a f'ng ninja. Find all tapable fields on screen - badass vimium style

####delete key

  • Pop a cap in UINavigationController (trigger back button item)

####arrow keys

  • Real commandos use crossbows. Scroll the 'default' (largest frame) UIScrollView

Installation

Use the wonderful CocoaPods.

In your Podfile

pod 'Commando'

You don't need to do anything else because Commando will be automatically listening for keyboard events in the simulator. Also you don't need to worry about this code shipping in your production app, because none of it is compiled on device builds.

TODO

  • Improve heuristic for finding tapable views. ie filter out views that are obscured, userInteractionDisabled etc.
  • Add view debugging commands ala DCIntrospect
  • Select specific UIScrollView to scroll
  • Tab between tapable UIViews ordered by view frame, then hit enter key to tap,
  • UIPanGestureRecognizer, UISwipeGestureRecognizer support
  • UIWebView support

Credits

About

Navigate the iOS simulator with the keyboard. Ditch your mouse and GO FULL COMMANDO!

License:MIT License


Languages

Language:Objective-C 98.3%Language:Ruby 1.7%