Files
zulip/static/js
N-Shar-ma 92788a52bb compose: Handle hotkey triggers depending on whitespace in composebox.
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.
2023-01-30 11:32:37 -08:00
..
2023-01-03 11:09:50 -08:00
2023-01-03 11:09:50 -08:00
2022-12-06 09:58:40 -08:00
2023-01-03 11:09:50 -08:00
2023-01-03 11:09:50 -08:00
2023-01-06 16:53:57 -08:00