mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
We now handle the esc key completely within the keydown handler that we already have for message editing. We allow escape to work no matter what the focused element is within an edited message, and we blur that element properly and end the edit. We remove all the strange, duplicated logic from hotkey.js. This should also fix a blueslip error where the hotkey code was passing message_edit a jQuery element with zero length. Fixes the traceback reported in #14151, though we should still look at the DOM cleanup discussed there.
29 KiB
29 KiB