aboutsummaryrefslogtreecommitdiffhomepage
path: root/callbacks.c
diff options
context:
space:
mode:
Diffstat (limited to 'callbacks.c')
-rw-r--r--callbacks.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/callbacks.c b/callbacks.c
index dd3008c..a9cdc79 100644
--- a/callbacks.c
+++ b/callbacks.c
@@ -494,7 +494,9 @@ button_press_cb (GtkWidget* window, GdkEventButton* event) {
context = get_click_context();
if((context & WEBKIT_HIT_TEST_RESULT_CONTEXT_EDITABLE))
- send_event(FORM_ACTIVE, "", NULL);
+ send_event(FORM_ACTIVE, "button1", NULL);
+ else if((context & WEBKIT_HIT_TEST_RESULT_CONTEXT_DOCUMENT))
+ send_event(ROOT_ACTIVE, "button1", NULL);
}
}