Import std.term.input
KeyEvent
struct
Public Struct KeyEvent Implements Hashable, Printable
A key typed: its Code, the Character it typed for CHAR, and the Modifiers held with it. A letter typed with Ctrl is that letter, lowercase, with CONTROL, so Ctrl+C is 'c' and CONTROL, and Ctrl+Space is ' ' and CONTROL. A capital is its own Character, without SHIFT, as a terminal sends it.
-
Which key it was.
-
The character it typed, for CHAR.
-
The modifiers held with it.
-
A key that types no character, like UP, with the
modifiersheld. -
The key that types
character, with themodifiersheld. -
Whether it typed
c, without Ctrl or Alt. -
Whether it's Ctrl and the letter
c, in either case, without Alt: IsControl('c') for Ctrl+C. -
Whether it types a character that shows, without Ctrl or Alt, as text takes it.
-
Like "a", "Ctrl+C", "Alt+Enter", "Shift+Up", "F5", or "Space".
Report an issue with this page or with FutureBlitz on GitHub.