Often, you want a keybinding to be available in certain modes, but not other modes.
Vim handles this by exposing several variations of its map command (like nmap, imap, noremap, etc)
In Oni, the filter function determines whether or not a binding ins enabled. It's simply a function
that returns true or false.
Generated using TypeDoc
Input API entry point