lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev patch that allows text inputs to be non-sticky


From: Vlad Harchev
Subject: Re: lynx-dev patch that allows text inputs to be non-sticky
Date: Tue, 27 Jul 1999 12:53:54 +0500 (SAMST)

On Tue, 27 Jul 1999, Vlad Harchev wrote:

> >[....] 
> > That's a job for TAB (and backtab if you have it).  I don't think Down
> > Arrow and Up Arrow should suddenly change meaning depending on the state
> > of 'activatedness'.
> 
>   But this can be easy implemented (I'm doing it, but reading your message,
> decided that this should also be configurable :)
>  We have another problem now:
> 
>  what commandline switch and lynx.cfg setting should this controlled by?
> 
>  Anyway, I have to send a patch: (the was a bug in my statusline changes - 
> when the text field becomes activated, statusline is not changed) - now it's
> fixed.
> 
>  As for textarea support, the next patch will provide the following
> functionality:
>  when autogrowing textarea, the just added text line becomes 'active'
> automatically.
>[...]
 
 Here is that bugfix patch. It doesn't contain 'TAB' support for textarea - I
implemented the logic that substitutes LYK_NEXT to LYK_FASTFORW (same for
LYK_PREV), but after testing I decided that it's not enough (very stupid
logic), so support for it is not included in the patch I'm attaching.
 I go to bed, so I'll be unable to answer e-mails for ~11 hours.

 Best regards,
  -Vlad

--- LYMainLoop.c-old-1  Tue Jul 27 09:31:17 1999
+++ LYMainLoop.c        Tue Jul 27 12:43:31 1999
@@ -1816,12 +1816,14 @@
                                        --newdoc.link;
                                    newdoc.link++;
                            }
+                       }
 #ifndef NO_NONSTICKY_INPUTS
+                       if (!sticky_inputs) {
                            textarea_activated = TRUE;
-                           textarea_drawn = FALSE;
+                           textarea_drawn = TRUE;
+                       };
 #endif
-                           
-                       }
+                       
                   }
 #endif /* AUTOGROW */
 
@@ -3328,7 +3330,11 @@
                 links[curdoc.link].form->type == F_TEXT_SUBMIT_TYPE ||
                 links[curdoc.link].form->type == F_PASSWORD_TYPE ||
                 links[curdoc.link].form->type == F_TEXTAREA_TYPE)) {
+                
                 textarea_activated = TRUE;
+                textarea_drawn = FALSE;
+                if (!sticky_inputs)
+                    show_main_statusline(links[curdoc.link]);
                 break;
            };
 #endif                 


reply via email to

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