ruby-changes:71034
From: aycabta <ko1@a...>
Date: Thu, 27 Jan 2022 20:54:27 +0900 (JST)
Subject: [ruby-changes:71034] f4ee60543a (master): [ruby/reline] The AltGr behaves exactly the same as Ctrl+Alt
https://git.ruby-lang.org/ruby.git/commit/?id=f4ee60543a From f4ee60543acf05742360c8d1f029d88672ff1eef Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Tue, 18 Jan 2022 06:10:06 +0900 Subject: [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 f064472ce76..005c6c39380 100644 --- a/lib/reline/windows.rb +++ b/lib/reline/windows.rb @@ -249,7 +249,7 @@ class Reline::Windows https://github.com/ruby/ruby/blob/trunk/lib/reline/windows.rb#L249 # 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 -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/