Skip to content

Commit

Permalink
Add <Home> <End> keys.
Browse files Browse the repository at this point in the history
  • Loading branch information
osyo-manga committed Nov 16, 2019
1 parent 98b72af commit 95d01a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/reline/ansi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ class Reline::ANSI
[27, 91, 51, 126] => :key_delete, # Del
[27, 91, 49, 126] => :ed_move_to_beg, # Home
[27, 91, 52, 126] => :ed_move_to_end, # End
[27, 91, 72] => :ed_move_to_beg, # Home
[27, 91, 70] => :ed_move_to_end, # End
[27, 32] => :em_set_mark, # M-<space>
[24, 24] => :em_exchange_mark, # C-x C-x TODO also add Windows
}
Expand Down

0 comments on commit 95d01a7

Please sign in to comment.