Skip to content

Commit

Permalink
Add comments for Alt+d key sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Sep 5, 2021
1 parent b035e1d commit 4cb5f7e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/irb/input-method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,10 @@ def auto_indent(&block)

SHOW_DOC_DIALOG = ->() {
dialog.trap_key = nil
alt_d = [[Reline::Key.new(nil, 0xE4, true)], [195, 164]]
alt_d = [
[Reline::Key.new(nil, 0xE4, true)], # Normal Alt+d.
[195, 164] # The "ä" that appears when Alt+d is pressed on xterm.
]
begin
require 'rdoc'
rescue LoadError
Expand Down

0 comments on commit 4cb5f7e

Please sign in to comment.