always prefix with \033 when alt is pressed

This commit is contained in:
Boris Faure 2014-12-14 20:32:59 +01:00
parent 5d2c531756
commit de34557170
1 changed files with 2 additions and 5 deletions

View File

@ -169,11 +169,8 @@ _handle_key_to_pty(Termpty *ty, const Evas_Event_Key_Down *ev,
if (ev->string)
{
if ((ev->string[0]) && (!ev->string[1]))
{
if (alt)
termpty_write(ty, "\033", 1);
}
if (alt)
termpty_write(ty, "\033", 1);
termpty_write(ty, ev->string, strlen(ev->string));
}
}