Skip to content

Commit c4d3693

Browse files
committed
bugfix: ui: Focus on content_area when draft is opened from side-panels.
This commit fixes a bug that caused the focus to not move to the content area if the draft was opened from the side-panels. This is minor bugfix that should set the focus to the message_column before setting it to the footer(i.e. content_area).
1 parent 4ec272b commit c4d3693

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

zulipterminal/ui.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ def keypress(self, size: Tuple[int, int], key: str) -> Optional[str]:
262262
content = saved_draft["content"]
263263
self.write_box.msg_write_box.edit_text = content
264264
self.write_box.msg_write_box.edit_pos = len(content)
265+
self.body.focus_col = 1
265266
self.middle_column.set_focus("footer")
266267
else:
267268
self.set_footer_text("No draft message was saved in this session.", 3)

0 commit comments

Comments
 (0)