aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorNehliin2021-10-17 14:06:21 +0000
committerBlaž Hrastnik2021-10-28 01:22:52 +0000
commitda4d9340baca311580ee7a10eaaec1f63a77bb60 (patch)
tree144b22e094d5f1283e0cd686944274fe7d4b8e7f /helix-term
parenta4c5f467398fd3ad769907ca000dd812d5374abc (diff)
Make key macro more portable
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/keymap.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs
index 8f59060f..ed7f7edd 100644
--- a/helix-term/src/keymap.rs
+++ b/helix-term/src/keymap.rs
@@ -12,13 +12,13 @@ use std::{
#[macro_export]
macro_rules! key {
($key:ident) => {
- KeyEvent {
+ ::helix_view::input::KeyEvent {
code: ::helix_view::keyboard::KeyCode::$key,
modifiers: ::helix_view::keyboard::KeyModifiers::NONE,
}
};
($($ch:tt)*) => {
- KeyEvent {
+ ::helix_view::input::KeyEvent {
code: ::helix_view::keyboard::KeyCode::Char($($ch)*),
modifiers: ::helix_view::keyboard::KeyModifiers::NONE,
}