From 0f0b4250ca460d58edb61cc0dd509ba1980c3272 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 24 Jul 2020 13:19:38 +0300 Subject: Added GmRequest for handling the request This feels a little bit too complex, with GmRequest observing TlsRequest and then notifying its own audience. There are still some issues with cancelling requests as well. --- src/ui/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/window.c') diff --git a/src/ui/window.c b/src/ui/window.c index 43233010..2cd30459 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -49,7 +49,7 @@ static iBool handleRootCommands_(iWidget *root, const char *cmd) { } return iTrue; } - else if (equal_Command(cmd, "setfocus")) { + else if (equal_Command(cmd, "focus.set")) { setFocus_Widget(findWidget_App(cstr_String(string_Command(cmd, "id")))); return iTrue; } @@ -273,7 +273,7 @@ static void setupUserInterface_Window(iWindow *d) { #endif /* Glboal keyboard shortcuts. */ { // addAction_Widget(d->root, SDLK_LEFTBRACKET, KMOD_SHIFT | KMOD_PRIMARY, "tabs.prev"); - addAction_Widget(d->root, 'l', KMOD_PRIMARY, "setfocus id:url"); + addAction_Widget(d->root, 'l', KMOD_PRIMARY, "focus.set id:url"); } } -- cgit v1.2.3