mirror of https://github.com/zulip/zulip.git
92788a52bb
The `focus_in_empty_compose` function used for hotkeys, now checks if the compose box is truly empty by considering it's untrimmed value. If there are just spaces in the focused compose box, `focus_in_empty_compose` returns false now. This fixes the bug where using the left key among just spaces did not move back the cursor as expected, and may unexpectedly trigger edit state for the last sent message. For `up` hotkeys, message navigation is also triggered if the cursor is at the start of the composebox with just whitespace. A new helper function is added for this check. |
||
---|---|---|
.. | ||
assets | ||
audio/notification_sounds | ||
generated | ||
html | ||
images | ||
js | ||
shared | ||
styles | ||
templates | ||
third | ||
.gitignore |