lib/ruco/keyboard.rb in ruco-0.2.15 vs lib/ruco/keyboard.rb in ruco-0.2.16

- old
+ new

@@ -186,10 +186,10 @@ if needs_paste_fix?(sequence) [bytes_to_string(sequence)] else # when connected via ssh escape sequences are used if escape_sequence?(sequence) - stringified = bytes_to_string(sequence).sub("\e",'^').sub('[[','[') + stringified = bytes_to_string(sequence).sub(/\e+/,'^').sub('[[','[') [translate_key_to_code(stringified)] else bytes_to_key_codes(sequence) end end