1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/irb] Add Alt+d keycode when convert-meta isn't used

I pushed reline#389 for when convert-meta is not turned on in .inputrc.
Alt+D in irb also needs to be set to the keycode for not using convert-meta.

https://github.com/ruby/irb/commit/328eddf851
This commit is contained in:
ima1zumi 2021-11-29 21:59:12 +09:00 committed by git
parent dcbe29d2ae
commit d486286f1d

View file

@ -318,6 +318,7 @@ module IRB
dialog.trap_key = nil
alt_d = [
[Reline::Key.new(nil, 0xE4, true)], # Normal Alt+d.
[27, 100], # Normal Alt+d when convert-meta isn't used.
[195, 164] # The "ä" that appears when Alt+d is pressed on xterm.
]