Trigger ExitChecker on pressed keys (#162)
Trigger ExitChecker on pressed keys (#162)

* prompt.go handleKeyBinding can indicate one should Exit if an exit checker function is set

* Use new name exitChecker instead of old exitor

* ExitChecker API change: breakline bool

- breakline true means the executor has been called: check for exit
- breakline false means no executor, just a character typed: check for
exit

c-bata/go-prompt,c-bata/go-prompt,c-bata/go-prompt