From afee9fd42b95274d71c76351349b9bf2090632c5 Mon Sep 17 00:00:00 2001 From: TingPing Date: Sun, 1 Feb 2015 16:37:27 -0500 Subject: Only send utf8 string in Key Press event Fixes #869 --- src/fe-gtk/fkeys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fe-gtk') diff --git a/src/fe-gtk/fkeys.c b/src/fe-gtk/fkeys.c index 38e991cb..553c7447 100644 --- a/src/fe-gtk/fkeys.c +++ b/src/fe-gtk/fkeys.c @@ -322,7 +322,7 @@ key_handle_key_press (GtkWidget *wid, GdkEventKey *evt, session *sess) return FALSE; current_sess = sess; - if (plugin_emit_keypress (sess, evt->state, evt->keyval, evt->length, evt->string)) + if (plugin_emit_keypress (sess, evt->state, evt->keyval, gdk_keyval_to_unicode (evt->keyval))) return 1; /* maybe the plugin closed this tab? */ -- cgit 1.4.1