For the latest stable version, please use Spring Shell 3.4.0! |
Key Handling
Views have their own default bindings which can be changed.
You can subscribe into all key events:
eventLoop.keyEvents().subscribe((KeyEvent event) -> {
// do something with key event
});
KeyEvent
is a record containing info about a binding coming out
from a terminal.
Some views allow you to register hot keys which are processed before normal key handling. More about this can be found from Register Bindings.