Skip to content

Commit

Permalink
[ruby/reline] The AltGr behaves exactly the same as Ctrl+Alt
Browse files Browse the repository at this point in the history
On European keyboards.

ruby/reline@75fe9759a4
  • Loading branch information
aycabta authored and matzbot committed Jan 27, 2022
1 parent f511ff3 commit f4ee605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reline/windows.rb
Expand Up @@ -249,7 +249,7 @@ def self.process_key_event(repeat_count, virtual_key_code, virtual_scan_code, ch
# 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
Expand Down

0 comments on commit f4ee605

Please sign in to comment.