Skip to content

Commit 75fe975

Browse files
committed
The AltGr behaves exactly the same as Ctrl+Alt
On European keyboards.
1 parent beb5f49 commit 75fe975

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/reline/windows.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def self.process_key_event(repeat_count, virtual_key_code, virtual_scan_code, ch
249249
# no char, only control keys
250250
return if key.char_code == 0 and key.control_keys.any?
251251

252-
@@output_buf.push("\e".ord) if key.control_keys.include?(:ALT)
252+
@@output_buf.push("\e".ord) if key.control_keys.include?(:ALT) and !key.control_keys.include?(:CTRL)
253253

254254
@@output_buf.concat(key.char.bytes)
255255
end

0 commit comments

Comments
 (0)