From 6fb63d7b4d4275a1e309a4de7de0c09430c9ae2d Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Fri, 8 Nov 2013 23:46:47 +0100 Subject: [PATCH] Fixed wrong mode after click into form field (#51). --- src/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) { -- 2.20.1