|
|
@ -12,13 +12,13 @@ use std::{
|
|
|
|
#[macro_export]
|
|
|
|
#[macro_export]
|
|
|
|
macro_rules! key {
|
|
|
|
macro_rules! key {
|
|
|
|
($key:ident) => {
|
|
|
|
($key:ident) => {
|
|
|
|
KeyEvent {
|
|
|
|
::helix_view::input::KeyEvent {
|
|
|
|
code: ::helix_view::keyboard::KeyCode::$key,
|
|
|
|
code: ::helix_view::keyboard::KeyCode::$key,
|
|
|
|
modifiers: ::helix_view::keyboard::KeyModifiers::NONE,
|
|
|
|
modifiers: ::helix_view::keyboard::KeyModifiers::NONE,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
($($ch:tt)*) => {
|
|
|
|
($($ch:tt)*) => {
|
|
|
|
KeyEvent {
|
|
|
|
::helix_view::input::KeyEvent {
|
|
|
|
code: ::helix_view::keyboard::KeyCode::Char($($ch)*),
|
|
|
|
code: ::helix_view::keyboard::KeyCode::Char($($ch)*),
|
|
|
|
modifiers: ::helix_view::keyboard::KeyModifiers::NONE,
|
|
|
|
modifiers: ::helix_view::keyboard::KeyModifiers::NONE,
|
|
|
|
}
|
|
|
|
}
|
|
|
|