Skip to content

Commit

Permalink
Add Alt+d keycode when convert-meta isn't used
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ima1zumi committed Nov 29, 2021
1 parent bd597bc commit 328eddf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/irb/input-method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ def auto_indent(&block)
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.
]

Expand Down

0 comments on commit 328eddf

Please sign in to comment.