Skip to content

Commit

Permalink
core/boxes: Improve handling of pressing Esc during message compose.
Browse files Browse the repository at this point in the history
Fixes zulip#1342.
  • Loading branch information
rsashank committed Dec 19, 2023
1 parent d5ffc5a commit 4e25b93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zulipterminal/ui_tools/boxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ def keypress(self, size: urwid_Size, key: str) -> Optional[str]:
)
elif is_command_key("GO_BACK", key):
self.send_stop_typing_status()
confirmation_msg_length = 10
confirmation_msg_length = 15
if len(self.msg_write_box.edit_text) > confirmation_msg_length:
self.view.controller.exit_compose_confirmation_popup()
else:
Expand Down

0 comments on commit 4e25b93

Please sign in to comment.