mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2026-02-21 10:39:03 +01:00
16 lines
635 B
Rust
16 lines
635 B
Rust
use crate::*;
|
|
|
|
//#[test] fn test_parse_key () {
|
|
////use KeyModifiers as Mods;
|
|
//let _test = |x: &str, y|assert_eq!(KeyMatcher::new(x).build(), Some(Event::Key(y)));
|
|
////test(":x",
|
|
////KeyEvent::new(KeyCode::Char('x'), Mods::NONE));
|
|
////test(":ctrl-x",
|
|
////KeyEvent::new(KeyCode::Char('x'), Mods::CONTROL));
|
|
////test(":alt-x",
|
|
////KeyEvent::new(KeyCode::Char('x'), Mods::ALT));
|
|
////test(":shift-x",
|
|
////KeyEvent::new(KeyCode::Char('x'), Mods::SHIFT));
|
|
////test(":ctrl-alt-shift-x",
|
|
////KeyEvent::new(KeyCode::Char('x'), Mods::CONTROL | Mods::ALT | Mods::SHIFT ));
|
|
//}
|