From: Daniel Carl Date: Fri, 8 Nov 2013 22:46:47 +0000 (+0100) Subject: Fixed wrong mode after click into form field (#51). X-Git-Url: https://git.owens.tech/assets/favicon.png/assets/favicon.png/git?a=commitdiff_plain;h=6fb63d7b4d4275a1e309a4de7de0c09430c9ae2d;p=vimb.git Fixed wrong mode after click into form field (#51). --- diff --git a/src/main.c b/src/main.c index f3d170a..addcede 100644 --- a/src/main.c +++ b/src/main.c @@ -801,8 +801,7 @@ static gboolean button_relase_cb(WebKitWebView *webview, GdkEventButton *event) WebKitHitTestResult *result = webkit_web_view_get_hit_test_result(webview, event); g_object_get(result, "context", &context, NULL); - /* TODO move this to normal.c */ - if (vb.mode->id == 'n' && context & WEBKIT_HIT_TEST_RESULT_CONTEXT_EDITABLE) { + if (context & WEBKIT_HIT_TEST_RESULT_CONTEXT_EDITABLE) { mode_enter('i'); propagate = true; } else if (context & WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK && event->button == 2) {