mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/reline] Support for key bindings result Symbol in Reline::Key
https://github.com/ruby/reline/commit/cf78a38064
This commit is contained in:
parent
bbb3162dd2
commit
56ab22ab3d
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ module Reline
|
|||
(key.char.nil? or char.nil? or char == key.char) and
|
||||
(key.combined_char.nil? or combined_char.nil? or combined_char == key.combined_char) and
|
||||
(key.with_meta.nil? or with_meta.nil? or with_meta == key.with_meta)
|
||||
elsif key.is_a?(Integer)
|
||||
elsif key.is_a?(Integer) or key.is_a?(Symbol)
|
||||
if not combined_char.nil? and combined_char == key
|
||||
true
|
||||
elsif not char.nil? and char == key
|
||||
|
|
Loading…
Reference in a new issue