zulip/static/third
N-Shar-ma ec25310654 typeahead: Fix typeahead for custom selection triggers.
Now checking for custom trigger keys will happen during `keydown`
instead of `keyup` so that if the key is printable, `preventDefault`
can prevent it from appearing in the compose box.

This fixes the case when jumping to topic, would eat up any space
or new line after the cursor, due to wrong splitting around the
cursor, which was a result of using the printable custom trigger key,
the ">", in contrast to a non printable one like Enter.

The problem was that custom trigger keys like `>` that the browser's
default behavior is to type (vs. others like RightArrow where that
isn't the case) can result in extra characters being emitted, which
is not wanted.
2022-02-02 17:27:08 -08:00
..
bootstrap lint: Fix typos found by codespell. 2021-10-19 16:51:13 -07:00
bootstrap-tooltip tooltip: Fix arrow position. 2020-09-04 10:36:02 -07:00
bootstrap-typeahead typeahead: Fix typeahead for custom selection triggers. 2022-02-02 17:27:08 -08:00
jquery-idle
marked minor: Simplify `usermention` regex and properly use capturing groups. 2021-05-20 11:35:04 -07:00