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

[ruby/reline] The AltGr behaves exactly the same as Ctrl+Alt

On European keyboards.

https://github.com/ruby/reline/commit/75fe9759a4
This commit is contained in:
aycabta 2022-01-18 06:10:06 +09:00 committed by git
parent f511ff3b3a
commit f4ee60543a

View file

@ -249,7 +249,7 @@ class Reline::Windows
# no char, only control keys
return if key.char_code == 0 and key.control_keys.any?
@@output_buf.push("\e".ord) if key.control_keys.include?(:ALT)
@@output_buf.push("\e".ord) if key.control_keys.include?(:ALT) and !key.control_keys.include?(:CTRL)
@@output_buf.concat(key.char.bytes)
end