1
0
Fork 0
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:
aycabta 2021-09-05 23:36:22 +09:00 committed by git
parent bbb3162dd2
commit 56ab22ab3d

View file

@ -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