Install focus/blue callbacks when load finished
authorChris Salzberg <chris@dejimata.com>
Thu, 22 Oct 2015 15:05:31 +0000 (00:05 +0900)
committerChris Salzberg <chris@dejimata.com>
Thu, 22 Oct 2015 15:05:31 +0000 (00:05 +0900)
src/main.c

index 20143d1..132fef7 100644 (file)
@@ -788,6 +788,8 @@ static void webview_load_status_cb(WebKitWebView *view, GParamSpec *pspec)
             break;
 
         case WEBKIT_LOAD_FINISHED:
+            frame = webkit_web_view_get_main_frame(view);
+            dom_install_focus_blur_callbacks(webkit_web_frame_get_dom_document(frame));
             uri = webkit_web_view_get_uri(view);
 #ifdef FEATURE_AUTOCMD
             autocmd_run(AU_LOAD_FINISHED, uri, NULL);