--- a/sdlterm/cython/sdlterm.pyx Wed Jan 23 00:59:21 2013 +0100
+++ b/sdlterm/cython/sdlterm.pyx Wed Jan 23 21:49:40 2013 +0100
@@ -13,6 +13,7 @@
cdef struct Event_key:
char *keyname
Py_UNICODE unicode
+ int mod
cdef struct Event_mouse:
int x, y
@@ -107,7 +108,8 @@
char = event.key.unicode
if char == '\x00':
char = None
- return ('keypress', keyname, char)
+ mod = event.key.mod
+ return ('keypress', keyname, char, mod)
if event.type == event.RESIZE:
return ('resize',)
if event.type == event.QUIT: