Files
spring-shell/spring-shell-docs/modules/ROOT/pages/tui/events/key.adoc
Janne Valkealahti db3f67784a Update docs
2023-10-28 09:16:42 +01:00

18 lines
431 B
Plaintext

[[tui-events-key]]
= Key Handling
:page-section-summary-toc: 1
ifndef::snippets[:snippets: ../../../../../src/test/java/org/springframework/shell/docs]
Views have their own default bindings which can be changed.
You can subscribe into all key events:
[source, java, indent=0]
----
include::{snippets}/KeyHandlingSnippets.java[tag=sample]
----
`KeyEvent` is a record containing info about a binding coming out
from a terminal.