From b3ea6d9f27b461a7c70c81aa2f2940a55a15deea Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Sun, 5 Apr 2015 13:04:40 +0200 Subject: [PATCH] Check for DOM focus/blur events as soon as possible (#197). This is required to remove focus in strict-focus=true even when the focus is set to an editable element before the page is completely loaded. The previous logic caused the cursor to be visible in form filed but vimb where still in normals mode. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 7f7168a..b92d650 100644 --- a/src/main.c +++ b/src/main.c @@ -763,6 +763,7 @@ static void webview_load_status_cb(WebKitWebView *view, GParamSpec *pspec) if (vb.mode->id == 'i') { vb_enter('n'); } + dom_check_auto_insert(view); break; case WEBKIT_LOAD_FINISHED: @@ -776,7 +777,6 @@ static void webview_load_status_cb(WebKitWebView *view, GParamSpec *pspec) update_title(); if (strncmp(uri, "about:", 6)) { - dom_check_auto_insert(view); history_add(HISTORY_URL, uri, webkit_web_view_get_title(view)); } break; -- 2.20.1