Browse code

Merge pull request #71 from tgeng/master

Support cursor jumping with Home and End keys

John Hawthorn authored on 21/04/2018 18:43:30 • GitHub committed on 21/04/2018 18:43:30
Showing 1 changed files

... ...
@@ -279,6 +279,10 @@ 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[H", action_beginning}, /* HOME */
284
+					   {"\x1b[4~", action_end}, /* END */
285
+					   {"\x1b[F", action_end}, /* END */
282 286
 					   {"\x1b[A", action_prev}, /* UP */
283 287
 					   {"\x1bOA", action_prev}, /* UP */
284 288
 					   {"\x1b[B", action_next}, /* DOWN */