added WE_KEY detail format to stdwinmodule.c.

This commit is contained in:
Guido van Rossum 1992-06-30 12:48:26 +00:00
parent dd9ed839d6
commit 3ee199e0cd
1 changed files with 6 additions and 0 deletions

View File

@ -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;