@@ -67,6 +67,8 @@ pub enum Key {
6767 Down ,
6868 PageUp ,
6969 PageDown ,
70+ Home ,
71+ End ,
7072 Tab ,
7173 Esc ,
7274}
@@ -111,6 +113,8 @@ impl Key {
111113 KeyCode :: Down => Some ( Self :: Down ) ,
112114 KeyCode :: PageUp => Some ( Self :: PageUp ) ,
113115 KeyCode :: PageDown => Some ( Self :: PageDown ) ,
116+ KeyCode :: Home => Some ( Self :: Home ) ,
117+ KeyCode :: End => Some ( Self :: End ) ,
114118 KeyCode :: Tab => Some ( Self :: Tab ) ,
115119 KeyCode :: Esc => Some ( Self :: Esc ) ,
116120 KeyCode :: F ( n) => Some ( Self :: F ( n) ) ,
@@ -172,6 +176,8 @@ impl Key {
172176 "down" => Self :: Down ,
173177 "pageup" => Self :: PageUp ,
174178 "pagedown" => Self :: PageDown ,
179+ "home" => Self :: Home ,
180+ "end" => Self :: End ,
175181 "tab" => Self :: Tab ,
176182 "esc" => Self :: Esc ,
177183 _ => bail ! ( "unsupported key '{raw_key}'" ) ,
@@ -288,8 +294,8 @@ generate_keys_default!(
288294 move_right => [ "l" , "<right>" ] ,
289295 select_focus => [ "<enter>" ] ,
290296 select_parent => [ "p" ] ,
291- select_first => [ "g" , "<ctrl-a>" ] ,
292- select_last => [ "G" , "<ctrl-l>" ] ,
297+ select_first => [ "g" , "<ctrl-a>" , "<home>" ] ,
298+ select_last => [ "G" , "<ctrl-l>" , "<end>" ] ,
293299 close_parent => [ "<backspace>" ] ,
294300 change_root => [ "r" ] ,
295301 reset => [ "<esc>" ] ,
0 commit comments