From 03f8c271796ffb976487495f1675ec7583b6762d Mon Sep 17 00:00:00 2001 From: Lars Kanis Date: Thu, 8 Jul 2021 10:09:38 +0200 Subject: [ruby/reline] Windows cmd: Don't type anything when pressing ALT keys alone Fixes #298 https://github.com/ruby/reline/commit/72acfcd27a --- lib/reline/windows.rb | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib') diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb index 072fb1b6cd..4a36bf40d3 100644 --- a/lib/reline/windows.rb +++ b/lib/reline/windows.rb @@ -190,9 +190,6 @@ class Reline::Windows # It's treated as Meta+Space on Windows. @@output_buf.push("\e".ord) @@output_buf.push(char_code) - elsif control_key_state.anybits?(LEFT_ALT_PRESSED | RIGHT_ALT_PRESSED) - @@output_buf.push("\e".ord) - @@output_buf.concat(char.bytes) elsif control_key_state.anybits?(ENHANCED_KEY) case virtual_key_code # Emulate getwch() key sequences. when VK_END -- cgit v1.2.3