From 4c29f0bc019198a19b82ad3bbf57fc529ababebc Mon Sep 17 00:00:00 2001 From: Robert Manea Date: Mon, 19 Oct 2009 22:45:52 +0200 Subject: added ROOT_ACTIVE event --- callbacks.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'callbacks.c') 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); } } -- cgit v1.2.3