diff options
author | Guido van Rossum <guido@python.org> | 1992-06-30 12:48:26 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-06-30 12:48:26 (GMT) |
commit | 3ee199e0cde9b6da39b7d562a571719de5640021 (patch) | |
tree | 6ad2d4e8153a2c7f8e9c704adef1f4d19850c546 | |
parent | dd9ed839d6958f737045306488995a1097df93b8 (diff) | |
download | cpython-3ee199e0cde9b6da39b7d562a571719de5640021.zip cpython-3ee199e0cde9b6da39b7d562a571719de5640021.tar.gz cpython-3ee199e0cde9b6da39b7d562a571719de5640021.tar.bz2 |
added WE_KEY detail format to stdwinmodule.c.
-rw-r--r-- | Modules/stdwinmodule.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/stdwinmodule.c b/Modules/stdwinmodule.c index 4d2b48f..537777e 100644 --- a/Modules/stdwinmodule.c +++ b/Modules/stdwinmodule.c @@ -154,6 +154,9 @@ geteventarg(v, ep) &ep->u.where.mask); case WE_MENU: return getmenudetail(detail, ep); + case WE_KEY: + return getargs(detail, "(ii)", + &ep->u.key.code, &ep->u.key.mask); default: return 1; } @@ -1780,6 +1783,9 @@ stdwin_get_poll_event(poll, args) goto again; } break; + case WE_KEY: + w = mkvalue("(ii)", e.u.key.code, e.u.key.mask); + break; case WE_LOST_SEL: w = newintobject((long)e.u.sel); break; |