KBKit is a set of classes that extend UIKit navigation using key commands.
This is intended to improve iPad Pro apps by allowed users to do things on-screen using their keyboards.
These are the classes that are currently supported by KBKit:
↓ : allow the user to navigate up and down the table view.
⎋ (escape) : allows the user to stop navigating the table view.
⏎ or ⌘+D : allows the user to select the currently highlighted cell.
KBTableView has a property declared as
onSelection: (NSIndexPath) -> Void. When the user presses
⏎ while a cell is selected, this method is called with the index path of the selected cell. From here, you can choose to present a new view controller or perform a segue, for example.
KBTableView can be adopted simply by changing the class of your UITableView instances to KBTableView in Interface Builder or in your code.
⌘+← (command + left arrow) : allow the user to go back in the navigation stack without touching the screen.
KBNavigationController can be adopted by changing the class of your UINavigationController instances to KBNavigationController in Interface Builder or in your code.
⌘+1...5 : allows the user to switch to the tab that they choose (supports up to 5 tabs).
KBTabBarController can be adopted by changing the class of your UITabBarController instances to KBTabBarController in Interface Builder or in your code.
Feel free to contribute other classes to support this project. Revisions and improvements are always welcome.
You can contact me on Twitter at @ERDekhayser.