summaryrefslogtreecommitdiff
path: root/src/bin/keyin.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2014-12-14 20:32:59 +0100
committerBoris Faure <billiob@gmail.com>2014-12-14 20:32:59 +0100
commitde34557170deea6c2ce1f7f59ff2fc5c467435b7 (patch)
treed5ab7a30c5aa577c75a0d41a809347c03547361c /src/bin/keyin.c
parent5d2c531756cb5dfb2ff31656f3ab025f4bc8d2b0 (diff)
always prefix with \033 when alt is pressed
Diffstat (limited to 'src/bin/keyin.c')
-rw-r--r--src/bin/keyin.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/bin/keyin.c b/src/bin/keyin.c
index d33f142..73829a4 100644
--- a/src/bin/keyin.c
+++ b/src/bin/keyin.c
@@ -169,11 +169,8 @@ _handle_key_to_pty(Termpty *ty, const Evas_Event_Key_Down *ev,
169 169
170 if (ev->string) 170 if (ev->string)
171 { 171 {
172 if ((ev->string[0]) && (!ev->string[1])) 172 if (alt)
173 { 173 termpty_write(ty, "\033", 1);
174 if (alt)
175 termpty_write(ty, "\033", 1);
176 }
177 termpty_write(ty, ev->string, strlen(ev->string)); 174 termpty_write(ty, ev->string, strlen(ev->string));
178 } 175 }
179} 176}