summaryrefslogtreecommitdiff
path: root/src/callback.c
diff options
context:
space:
mode:
authorportix <none@none>2012-11-01 14:58:56 +0100
committerportix <none@none>2012-11-01 14:58:56 +0100
commit3da3defd89ea9213397bab7ec5908639b3594391 (patch)
tree82801b03e71825ce3825a5ef88103dffa20ecd81 /src/callback.c
parent2529be6a2c5783fbdde70847787cba06cb46175b (diff)
downloaddwb-3da3defd89ea9213397bab7ec5908639b3594391.zip
New signal changeMode; new method util.getMode
Diffstat (limited to 'src/callback.c')
-rw-r--r--src/callback.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/callback.c b/src/callback.c
index b1ee4ebf..321e1991 100644
--- a/src/callback.c
+++ b/src/callback.c
@@ -156,7 +156,7 @@ callback_key_press(GtkWidget *w, GdkEventKey *e) {
UINTEGER, "keyVal", e->keyval, UINTEGER, "keyCode", e->hardware_keycode,
BOOLEAN, "isModifier", e->is_modifier, CHAR, "name", gdk_keyval_name(e->keyval));
ScriptSignal signal = { SCRIPTS_WV(dwb.state.fview), SCRIPTS_SIG_META(json, KEY_PRESS, 0) };
- SCRIPTS_EMIT_RETURN(signal, json);
+ SCRIPTS_EMIT_RETURN(signal, json, true);
}
if (e->keyval == GDK_KEY_Escape) {
@@ -211,11 +211,8 @@ callback_key_release(GtkWidget *w, GdkEventKey *e) {
UINTEGER, "keyVal", e->keyval, UINTEGER, "keyCode", e->hardware_keycode,
BOOLEAN, "isModifier", e->is_modifier, CHAR, "name", gdk_keyval_name(e->keyval));
ScriptSignal signal = { SCRIPTS_WV(dwb.state.fview), SCRIPTS_SIG_META(json, KEY_RELEASE, 0) };
- SCRIPTS_EMIT_RETURN(signal, json);
+ SCRIPTS_EMIT_RETURN(signal, json, true);
}
- //SCRIPTS_EMIT_RETURN(SCRIPT(dwb.state.fview), KEY_RELEASE, 5, UINTEGER, "state", e->state,
- // UINTEGER, "keyVal", e->keyval, UINTEGER, "keyCode", e->hardware_keycode,
- // BOOLEAN, "isModifier", e->is_modifier, CHAR, "name", gdk_keyval_name(e->keyval));
if (DWB_TAB_KEY(e)) {
return true;
}