zulip/static
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
..
assets compose: Create shared compose banner and use for resolved topic warning. 2022-12-06 15:42:07 -08:00
audio/notification_sounds audio: Remove the copy of zulip.ogg outside notification_sounds. 2022-06-10 12:27:48 -07:00
generated
html templates: Add HTML title element to templates that extend base/portico. 2022-09-19 20:17:17 -07:00
images help center: Add mobile instructions to "Mute a topic". 2023-01-18 16:00:12 -08:00
js compose: Handle hotkey triggers depending on whitespace in composebox. 2023-01-30 11:32:37 -08:00
shared typeahead: Remove misleading comment regarding favouring popular emojis. 2023-01-20 14:41:21 -08:00
styles css: Remove some unnecessary CSS. 2023-01-26 12:36:31 -08:00
templates css: Add "bootstrap-focus-style" class to select elements. 2023-01-26 12:36:31 -08:00
third bootstrap: Remove CSS rules for select elements from bootstrap.css. 2023-01-26 12:36:31 -08:00
.gitignore docs: Add missing space in “time zone”. 2022-02-24 14:05:12 -08:00