From f4ee60543acf05742360c8d1f029d88672ff1eef Mon Sep 17 00:00:00 2001 From: aycabta Date: Tue, 18 Jan 2022 06:10:06 +0900 Subject: [PATCH] [ruby/reline] The AltGr behaves exactly the same as Ctrl+Alt On European keyboards. https://github.com/ruby/reline/commit/75fe9759a4 --- lib/reline/windows.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb index f064472ce76aaf..005c6c39380244 100644 --- a/lib/reline/windows.rb +++ b/lib/reline/windows.rb @@ -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