Browse code

Support cursor jumping with Home and End keys

Tianyu Geng authored on 05/02/2018 22:20:50
Showing 1 changed files

... ...
@@ -279,6 +279,8 @@ static const keybinding_t keybindings[] = {{"\x7f", action_del_char},	/* DEL */
279 279
 					   {"\x1b[D", action_left}, /* LEFT */
280 280
 					   {"\x1bOC", action_right}, /* RIGHT */
281 281
 					   {"\x1b[C", action_right}, /* RIGHT */
282
+					   {"\x1b[1~", action_beginning}, /* HOME */
283
+					   {"\x1b[4~", action_end}, /* END */
282 284
 					   {"\x1b[A", action_prev}, /* UP */
283 285
 					   {"\x1bOA", action_prev}, /* UP */
284 286
 					   {"\x1b[B", action_next}, /* DOWN */