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

[ruby/irb] Use Reline::Key for trap_key in dialog callback

https://github.com/ruby/irb/commit/b05ce3c72d
This commit is contained in:
aycabta 2021-09-03 03:31:21 +09:00 committed by git
parent 5458f23de2
commit 3d6a475587

View file

@ -315,7 +315,7 @@ module IRB
SHOW_DOC_DIALOG = ->() {
dialog.trap_key = nil
alt_d = 0xE4
alt_d = Reline::Key.new(nil, 0xE4, true)
begin
require 'rdoc'
rescue LoadError
@ -332,7 +332,7 @@ module IRB
driver = RDoc::RI::Driver.new
if key.combined_char == alt_d
if key.match?(alt_d)
begin
driver.display_names([name])
rescue RDoc::RI::Driver::NotFoundError