From 88346b965e375cc88215618fc36fa6c898f2acfe Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sun, 16 Dec 2012 18:15:39 +0100 Subject: [PATCH] Fix a tb on escape and no key after it. --- src/keyboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/keyboard.py b/src/keyboard.py index 2ad47e4b..07963912 100644 --- a/src/keyboard.py +++ b/src/keyboard.py @@ -59,9 +59,9 @@ def get_char_list_old(s): continue if first == 27: second = get_char_list_old(s) - if second is None: # if escape was pressed, a second char + if not second: # if escape was pressed, a second char # has to be read. But it timed out. - return None + return [] res = 'M-%s' % (second[0],) ret_list.append(res) (first, char) = get_next_byte(s)