mirror of
https://github.com/paul-nameless/tg
synced 2024-11-22 20:03:17 +00:00
Merge pull request #48 from paul-nameless/add-esc-handler
Add esc handler when writing msg
This commit is contained in:
commit
c7e17bb753
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ class StatusView:
|
||||||
elif key == 127: # del
|
elif key == 127: # del
|
||||||
if buff:
|
if buff:
|
||||||
buff = buff[:-1]
|
buff = buff[:-1]
|
||||||
elif key == 7: # ^G cancel
|
elif key in (7, 27): # (^G, <esc>) cancel
|
||||||
buff = ""
|
buff = ""
|
||||||
break
|
break
|
||||||
elif chr(key).isprintable():
|
elif chr(key).isprintable():
|
||||||
|
|
Loading…
Reference in a new issue