summaryrefslogtreecommitdiffstats
path: root/src/keys.rs
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2019-12-30 15:08:00 +0100
committerCanop <cano.petrole@gmail.com>2019-12-30 15:08:32 +0100
commit2049a48fe607e607d2f6010090f3a4639abf0c47 (patch)
tree615f525d6816350488d889c0e60fee14fad729a0 /src/keys.rs
parentca1cd95a8952782d092dda21a5448763803b019e (diff)
fix the fix
Diffstat (limited to 'src/keys.rs')
-rw-r--r--src/keys.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keys.rs b/src/keys.rs
index 55b8a43..22a86e2 100644
--- a/src/keys.rs
+++ b/src/keys.rs
@@ -21,7 +21,7 @@ macro_rules! const_key {
}
// we define a few constants which make it easier to check key events
-const_key!(ALT_ENTER, Char('\r'), KeyModifiers::ALT);
+const_key!(ALT_ENTER, Enter, KeyModifiers::ALT);
const_key!(ENTER, Enter);
const_key!(BACKSPACE, Backspace);
const_key!(BACK_TAB, BackTab);
@@ -50,7 +50,7 @@ pub fn key_event_desc(key: KeyEvent) -> String {
s.push_str("shift-");
}
match key.code {
- Char('\r') | Char('\n') => {
+ Char('\r') | Char('\n') | Enter => {
s.push_str("enter");
}
Char(c) => {