From 8b090f8d90f5ab58afc7dff88f196376fd59c8ab Mon Sep 17 00:00:00 2001
From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13"
 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>
Date: Tue, 20 Jul 2010 19:15:15 +0000
Subject: Should fix a crash on resize

---
 src/keyboard.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/keyboard.py b/src/keyboard.py
index 1344035f..b27ed5f5 100644
--- a/src/keyboard.py
+++ b/src/keyboard.py
@@ -28,7 +28,10 @@ def get_next_byte(s):
     """
     Read the next byte of the utf-8 char
     """
-    c = s.getkey()
+    try:
+        c = s.getkey()
+    except:
+        return "KEY_RESIZE"
     if len(c) > 4:
         return (None, c)
     return (ord(c), c)
-- 
cgit v1.2.3