@@ -60,24 +60,24 @@ impl From<KeyEvent> for Node {
6060impl < ' a > From < & ' a Node > for KeyEvent {
6161 fn from ( node : & ' a Node ) -> Self {
6262 let key = match node. key {
63- Keys :: BackTab => KeyCode :: BackTab . into ( ) ,
64- Keys :: Backspace => KeyCode :: Backspace . into ( ) ,
65- Keys :: Char ( c) => KeyCode :: Char ( c) . into ( ) ,
66- Keys :: Delete => KeyCode :: Delete . into ( ) ,
67- Keys :: Down => KeyCode :: Down . into ( ) ,
68- Keys :: End => KeyCode :: End . into ( ) ,
69- Keys :: Enter => KeyCode :: Enter . into ( ) ,
70- Keys :: Esc => KeyCode :: Esc . into ( ) ,
71- Keys :: F ( n) => KeyCode :: F ( n) . into ( ) ,
72- Keys :: Home => KeyCode :: Home . into ( ) ,
73- Keys :: Insert => KeyCode :: Insert . into ( ) ,
74- Keys :: Left => KeyCode :: Left . into ( ) ,
75- Keys :: PageDown => KeyCode :: PageDown . into ( ) ,
76- Keys :: PageUp => KeyCode :: PageUp . into ( ) ,
77- Keys :: Right => KeyCode :: Right . into ( ) ,
78- Keys :: Tab => KeyCode :: Tab . into ( ) ,
79- Keys :: Space => KeyCode :: Char ( ' ' ) . into ( ) ,
80- Keys :: Up => KeyCode :: Up . into ( ) ,
63+ Keys :: BackTab => KeyCode :: BackTab ,
64+ Keys :: Backspace => KeyCode :: Backspace ,
65+ Keys :: Char ( c) => KeyCode :: Char ( c) ,
66+ Keys :: Delete => KeyCode :: Delete ,
67+ Keys :: Down => KeyCode :: Down ,
68+ Keys :: End => KeyCode :: End ,
69+ Keys :: Enter => KeyCode :: Enter ,
70+ Keys :: Esc => KeyCode :: Esc ,
71+ Keys :: F ( n) => KeyCode :: F ( n) ,
72+ Keys :: Home => KeyCode :: Home ,
73+ Keys :: Insert => KeyCode :: Insert ,
74+ Keys :: Left => KeyCode :: Left ,
75+ Keys :: PageDown => KeyCode :: PageDown ,
76+ Keys :: PageUp => KeyCode :: PageUp ,
77+ Keys :: Right => KeyCode :: Right ,
78+ Keys :: Tab => KeyCode :: Tab ,
79+ Keys :: Space => KeyCode :: Char ( ' ' ) ,
80+ Keys :: Up => KeyCode :: Up ,
8181 } ;
8282
8383 Self :: new ( key, NodeModifiers :: from ( node. modifiers ) . into ( ) )
0 commit comments