diff options
author | Canop <cano.petrole@gmail.com> | 2022-01-30 18:59:30 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2022-01-30 18:59:30 +0100 |
commit | 122dccd34b3a3fbd72e5ffced18e45fe621ccf83 (patch) | |
tree | 85552b3bcdce962ad5f67c1d7f06270aa120dedb /src/app | |
parent | 4cfb2d0e8568cb4594211f33a7fd5019fc36d88b (diff) |
export key event parsing and formatting in crokey
This keys.rs file was copied into so many of my TUI applications,
I had to make it a distinct crate.
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/panel.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/panel.rs b/src/app/panel.rs index 24ee154..0411e49 100644 --- a/src/app/panel.rs +++ b/src/app/panel.rs @@ -11,7 +11,7 @@ use { flags_display, }, errors::ProgramError, - keys, + keys::KEY_FORMAT, skin::PanelSkin, stage::*, task_sync::Dam, @@ -255,7 +255,7 @@ impl Panel { _ => false, }) .filter_map(|v| v.keys.first()) - .map(|&k| keys::key_event_desc(k)) + .map(|&k| KEY_FORMAT.to_string(k)) .next() .unwrap_or_else(|| ":start_end_panel".to_string()); |