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/root.c | |
parent | 408597bd4f71a13a511b6af33601dff0be2ed317 (diff) |
Working on multiple UI roots
Root focus switching and opening links in the other root.
Diffstat (limited to 'src/ui/root.c')
-rw-r--r-- | src/ui/root.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/root.c b/src/ui/root.c index 8faeb215..aec5f26f 100644 --- a/src/ui/root.c +++ b/src/ui/root.c | |||
@@ -716,14 +716,14 @@ static iBool handleSearchBarCommands_(iWidget *searchBar, const char *cmd) { | |||
716 | equal_Rangecc(range_Command(cmd, "id"), "find.input")) { | 716 | equal_Rangecc(range_Command(cmd, "id"), "find.input")) { |
717 | iInputWidget *input = findChild_Widget(searchBar, "find.input"); | 717 | iInputWidget *input = findChild_Widget(searchBar, "find.input"); |
718 | if (arg_Command(cmd) && argLabel_Command(cmd, "enter") && isVisible_Widget(input)) { | 718 | if (arg_Command(cmd) && argLabel_Command(cmd, "enter") && isVisible_Widget(input)) { |
719 | postCommand_App("find.next"); | 719 | postCommand_Root(searchBar->root, "find.next"); |
720 | /* Keep focus when pressing Enter. */ | 720 | /* Keep focus when pressing Enter. */ |
721 | if (!isEmpty_String(text_InputWidget(input))) { | 721 | if (!isEmpty_String(text_InputWidget(input))) { |
722 | postCommand_App("focus.set id:find.input"); | 722 | postCommand_Root(searchBar->root, "focus.set id:find.input"); |
723 | } | 723 | } |
724 | } | 724 | } |
725 | else { | 725 | else { |
726 | postCommand_App("find.clearmark"); | 726 | postCommand_Root(searchBar->root, "find.clearmark"); |
727 | } | 727 | } |
728 | return iTrue; | 728 | return iTrue; |
729 | } | 729 | } |