On Thu, Nov 26, 2009 at 08:56:52PM +0000, corvid wrote:
Johannes wrote:
On Thu, Nov 26, 2009 at 11:53:12AM -0300, Jorge Arellano Cid wrote:
On Thu, Nov 26, 2009 at 11:01:02PM +0900, furaisanjin wrote:
2009/11/26, Jorge Arellano Cid <jcid@dillo.org>:
On Thu, Nov 26, 2009 at 08:22:25AM +0000, Jeremy Henty wrote:
On Tue, Nov 24, 2009 at 11:03:23PM +0100, Johannes Hofmann wrote:
> I would propose something as in attached patch to ensure that > Location is focused when opening a new (empty) tab.
+1
+1
I hope the patch will be part of dillo soon. The patch works very well.
@Johannes, please comment what the change is for before committing.
does anybody know, why BW2UI(new_bw)->tabs()->selected_child()->take_focus(); focusses the location text input?
I wouldn't be surprised if fltk chooses it because it's the UI's first child.
Indeed! With below patch, the dummy CustInput get's the focus. diff -r 90fabbb4077b src/ui.cc --- a/src/ui.ccSun Nov 22 18:35:48 2009 +0100 +++ b/src/ui.ccThu Nov 26 22:06:51 2009 +0100 @@ -444,6 +444,7 @@ b->callback(clear_cb, this); b->clear_tab_to_focus(); + new CustInput(0,0,100,0,0); Input *i = Location = new CustInput(0,0,0,0,0); i->color(CuteColor); i->when(WHEN_ENTER_KEY);