Only send utf8 string in Key Press event

Fixes #869
This commit is contained in:
TingPing committed 2015-02-02 02:56:08 -05:00
1 parent 60fa7efbc8
commit afee9fd42b
3 files changed
+11 -6

No files matched your search

+1 -1
View File
@@ -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? */