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

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