Commit e69a6d3c authored by deuce's avatar deuce
Browse files

Add WIN_POP

parent 32cf2189
......@@ -139,6 +139,7 @@
#define WIN_EDIT (1<<27) /* Allow F2 to edit a menu item */
#define WIN_EDITACT (1<<28) /* Remain active after edit key */
#define WIN_INACT (1<<29) /* Draw window inactive... intended for use with WIN_IMM */
#define WIN_POP (1<<30) /* Exit the list. Intended for use after a WIN_EXTKEYS or WIN_DYN */
#define WIN_MID WIN_L2R|WIN_T2B /* Place window in middle of screen */
......
......@@ -966,8 +966,11 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
if(api->timedisplay != NULL)
api->timedisplay(/* force? */FALSE);
gotkey=0;
if(kbwait()) {
gotkey=inkey();
if(kbwait() || (mode&WIN_POP)) {
if(mode&WIN_POP)
gotkey=CR;
else
gotkey=inkey();
if(gotkey==CIO_KEY_MOUSE) {
if((i=uifc_getmouse(&mevnt))==0) {
/* Clicked in menu */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment