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:
parent
f511ff3b3a
commit
f4ee60543a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue