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:
parent
5458f23de2
commit
3d6a475587
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue