diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-28 17:48:38 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-28 17:48:38 +0300 |
commit | 87b5dbd9c0393e787d2499d796486d3293f17214 (patch) | |
tree | 556f0b6b6a0188fdf9bd02275f796656ef428e86 /src/ui/lookupwidget.c | |
parent | 408597bd4f71a13a511b6af33601dff0be2ed317 (diff) |
Working on multiple UI roots
Root focus switching and opening links in the other root.
Diffstat (limited to 'src/ui/lookupwidget.c')
-rw-r--r-- | src/ui/lookupwidget.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/lookupwidget.c b/src/ui/lookupwidget.c index e0de97bf..b3e88ce8 100644 --- a/src/ui/lookupwidget.c +++ b/src/ui/lookupwidget.c | |||
@@ -742,7 +742,8 @@ static iBool processEvent_LookupWidget_(iLookupWidget *d, const SDL_Event *ev) { | |||
742 | return iTrue; | 742 | return iTrue; |
743 | } | 743 | } |
744 | } | 744 | } |
745 | if (key == SDLK_DOWN && !mods && focus_Widget() == findWidget_App("url") && | 745 | if (isVisible_Widget(w) && |
746 | key == SDLK_DOWN && !mods && focus_Widget() == findWidget_App("url") && | ||
746 | numItems_ListWidget(d->list)) { | 747 | numItems_ListWidget(d->list)) { |
747 | setCursor_LookupWidget_(d, 1); /* item 0 is always the first heading */ | 748 | setCursor_LookupWidget_(d, 1); /* item 0 is always the first heading */ |
748 | setFocus_Widget(w); | 749 | setFocus_Widget(w); |