Only send utf8 string in Key Press event

Fixes #869
This commit is contained in:
TingPing
2015-02-01 16:37:27 -05:00
parent 60fa7efbc8
commit afee9fd42b
3 changed files with 11 additions and 6 deletions

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? */