char_key

Function char_key 

Source
pub fn char_key(c: char) -> KeyEvent
Expand description

Create a KeyEvent for a character with no modifiers.

ยงExamples

use tui_dispatch_core::testing::char_key;
use crossterm::event::KeyCode;

let k = char_key('x');
assert_eq!(k.code, KeyCode::Char('x'));