summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2022-01-18 06:10:06 +0900
committergit <svn-admin@ruby-lang.org>2022-01-27 20:54:09 +0900
commitf4ee60543acf05742360c8d1f029d88672ff1eef (patch)
treede6ccf0a75dca8f972ea00b53e6ddf96e2028f22
parentf511ff3b3af4e70877538b911fde27c57792fc1d (diff)
[ruby/reline] The AltGr behaves exactly the same as Ctrl+Alt
On European keyboards. https://github.com/ruby/reline/commit/75fe9759a4
-rw-r--r--lib/reline/windows.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb
index f064472ce7..005c6c3938 100644
--- a/lib/reline/windows.rb
+++ b/lib/reline/windows.rb
@@ -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