on master help sign in
Make key macro more portable
commitda4d9340baca311580ee7a10eaaec1f63a77bb60 authorNehliin <oskar.d.nehlin@gmail.com> dateSun 17 Oct 2021, 16:06 (5 years ago) parenta4c5f46
1 file changed+2−2
helix-term/src/keymap.rs+2−2
helix-term/src/keymap.rs+2−2
@@ -12,13 +12,13 @@ use std::{
1212#[macro_export]
1313macro_rules! key {
1414 ($key:ident) => {
15− KeyEvent {
15+ ::helix_view::input::KeyEvent {
1616 code: ::helix_view::keyboard::KeyCode::$key,
1717 modifiers: ::helix_view::keyboard::KeyModifiers::NONE,
1818 }
1919 };
2020 ($($ch:tt)*) => {
21− KeyEvent {
21+ ::helix_view::input::KeyEvent {
2222 code: ::helix_view::keyboard::KeyCode::Char($($ch)*),
2323 modifiers: ::helix_view::keyboard::KeyModifiers::NONE,
2424 }