mirror of
https://github.com/paul-nameless/tg
synced 2024-11-22 03:43:19 +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
|
||||
if buff:
|
||||
buff = buff[:-1]
|
||||
elif key == 7: # ^G cancel
|
||||
elif key in (7, 27): # (^G, <esc>) cancel
|
||||
buff = ""
|
||||
break
|
||||
elif chr(key).isprintable():
|
||||
|
|
Loading…
Reference in a new issue