Init gobble mode. After parsing the defined number of input keys, execute
endCmd with attached parsed input. Escape cancels the mode and returns to
normal mode.
Parameters
numChars: number
endCommand: string
Returns void
parser
parser(keys: KeyboardEvent[]): object | object
Receive keypress. If applicable, execute a command.
Init gobble mode. After parsing the defined number of input keys, execute
endCmd
with attached parsed input.Escape
cancels the mode and returns to normal mode.