]> code.delx.au - offlineimap/blobdiff - offlineimap/ui/Curses.py
Merge commit 'origin' into v7
[offlineimap] / offlineimap / ui / Curses.py
index 4cf9066724aeb0bb579f91eb46fca945019f09b2..6c24ab317e4ee67ffa9fb14a7a4c225d9ffdd925 100644 (file)
@@ -375,7 +375,7 @@ class Blinkenlights(BlinkenBase, UIBase):
             sys.exit(0)
 
     def keypress(s, key):
-        if key > 255:
+        if key < 1 or key > 255:
             return
         
         if chr(key) == 'q':