summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2014-09-28 22:55:56 +0200
committerBoris Faure <billiob@gmail.com>2014-09-28 22:55:56 +0200
commitdcb978662ad994a56126eed18b54502339ac8fdc (patch)
tree2b54977e96d41a0e36e959af1ef3ec2caab6140a
parent91f88f21ffeab1f4ea0b32ef261ce6ae53fe6e40 (diff)
fix alt-backspace
-rw-r--r--src/bin/keyin.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bin/keyin.c b/src/bin/keyin.c
index a5b87f5..b114c83 100644
--- a/src/bin/keyin.c
+++ b/src/bin/keyin.c
@@ -121,10 +121,11 @@ _handle_key_to_pty(Termpty *ty, const Evas_Event_Key_Down *ev,
121 121
122 if (!strcmp(ev->key, "BackSpace")) 122 if (!strcmp(ev->key, "BackSpace"))
123 { 123 {
124 if (alt)
125 termpty_write(ty, "\033", 1);
124 if (ty->state.send_bs) 126 if (ty->state.send_bs)
125 { 127 {
126 termpty_write(ty, "\b", 1); 128 termpty_write(ty, "\b", 1);
127 return;
128 } 129 }
129 else 130 else
130 { 131 {
@@ -138,8 +139,8 @@ _handle_key_to_pty(Termpty *ty, const Evas_Event_Key_Down *ev,
138 { 139 {
139 termpty_write(ty, "\b", sizeof("\b") - 1); 140 termpty_write(ty, "\b", sizeof("\b") - 1);
140 } 141 }
141 return; 142 }
142 } 143 return;
143 } 144 }
144 if (!strcmp(ev->key, "Return")) 145 if (!strcmp(ev->key, "Return"))
145 { 146 {