lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LYNX-DEV numbered form inputs and popup options


From: Foteos Macrides
Subject: Re: LYNX-DEV numbered form inputs and popup options
Date: Sun, 27 Apr 1997 12:38:25 -0500 (EST)

Laura Eaves <address@hidden> wrote:
>[...]
>In the process of adding cases to popup_options in LYForms.c,
>I found some bugus command cases.
>In 2.7.1, try activating a popup menu and
>then typing 7 or 3.  It will cancel the selection.  I deleted
>these cases.  (See the diff.)

        You indeed should simply get rid of case 3 and case 7 where
you did, but need to do more than just that.  Replace the code between
the character fetch and switch with this:

[...]
        c = LYgetch();
        if (c == 3 || c == 7)   /* Control-C or Control-G */
            cmd = LYK_QUIT;
        else
            cmd = keymap[c+1];
#ifdef VMS
        if (HadVMSInterrupt) {
            HadVMSInterrupt = FALSE;
            cmd = LYK_QUIT;
        }
#endif /* VMS */

        switch(cmd) {
[...]


                                Fote

=========================================================================
 Foteos Macrides            Worcester Foundation for Biomedical Research
 address@hidden         222 Maple Avenue, Shrewsbury, MA 01545
=========================================================================
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]