diff options
author | aycabta <aycabta@gmail.com> | 2019-10-18 02:31:17 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-10-18 02:54:20 +0900 |
commit | 58657fa134852311ce6ce2827f72ba2d1b29a8bb (patch) | |
tree | d9d024c56142dfe1d45a995ea4f904490c3c81c0 /lib | |
parent | 53c05a6cf4bb1713d9db63b6e292644bead16da6 (diff) | |
download | ruby-58657fa134852311ce6ce2827f72ba2d1b29a8bb.tar.gz |
Add numeric keypad key sequences on Windows
Diffstat (limited to 'lib')
-rw-r--r-- | lib/reline/windows.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb index 9c2babaae5..efde9d1b38 100644 --- a/lib/reline/windows.rb +++ b/lib/reline/windows.rb @@ -10,6 +10,13 @@ class Reline::Windows [224, 71] => :ed_move_to_beg, # Home [224, 79] => :ed_move_to_end, # End [ 0, 41] => :ed_unassigned, # input method on/off + [ 0, 72] => :ed_prev_history, # ↑ + [ 0, 80] => :ed_next_history, # ↓ + [ 0, 77] => :ed_next_char, # → + [ 0, 75] => :ed_prev_char, # ← + [ 0, 83] => :key_delete, # Del + [ 0, 71] => :ed_move_to_beg, # Home + [ 0, 79] => :ed_move_to_end # End } if defined? JRUBY_VERSION |