summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2012-12-16 18:15:39 +0100
committerFlorent Le Coz <louiz@louiz.org>2012-12-16 18:16:08 +0100
commit88346b965e375cc88215618fc36fa6c898f2acfe (patch)
tree604a2370c812dee0beb138b8010bd338e358b180 /src
parent2ce849968f705cd0e3277d256e8b1d57df73c485 (diff)
downloadpoezio-88346b965e375cc88215618fc36fa6c898f2acfe.tar.gz
poezio-88346b965e375cc88215618fc36fa6c898f2acfe.tar.bz2
poezio-88346b965e375cc88215618fc36fa6c898f2acfe.tar.xz
poezio-88346b965e375cc88215618fc36fa6c898f2acfe.zip
Fix a tb on escape and no key after it.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.py4
1 files 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)