Hi, On Tue, Apr 09, 2024 at 01:15:23PM +0200, a1ex@dismail.de wrote:
I believe it is possible with fltk to pre-select the url text, so you can start typing right away. I have not figured out how to do that yet. If anyone can offer insight, it would be welcome.
The FLTK method that controls the selection is Fl_Input_::position()[1]. [1]: https://www.fltk.org/doc-1.3/classFl__Input__.html#af69c613575f9ddc178f8b721... If you follow the UI::focus_location() method you will see that we already select the location text[2]. However, something else is causing the selection to get lost shortly after. [2]: https://github.com/dillo-browser/dillo/blob/3eb3739980bc50705acbdeff6f175d4c...
Maybe we could have a pref named 'new_tab_page', and if it's undefined, the default blank tab behavior would remain. Otherwise the user defined url would be loaded on new tabs.
It sounds reasonable to me. I would use the empty string ("") as the default value to mean "don't open anything" (but still focus on the location bar). So we only add functionality retaining the same behavior we have now. PS: I have enabled munging so the Reply-To header points to the list. Existing Reply-To headers should be preserved. Also, I added the ML to mail-archive[3], which should be easier to browse with Dillo without JS. [3]: https://www.mail-archive.com/dillo-dev@mailman3.com/msg00001.html Best, Rodrigo.