Improve inline emoji modal (with bugfixes) #162

Merged
Aevann merged 7 commits from :emoji-modal-fixes into master 2023-07-01 00:04:24 +00:00

7 Commits (master)

Author SHA1 Message Date
KindaCrayCray 668f5c8536 Update old comment 2023-07-01 00:54:33 +02:00
KindaCrayCray 33bc341466 Fix emoji input menu not entering emojis
Problem was that we removed the parameter for the loadEmojis function
because we didn't do a full text search on the entire codebase to see
where it was actually used.

Also changed loading to reject the promise to ignore later keystrokes
while the modal is still loading.
2023-07-01 00:50:02 +02:00
KindaCrayCray 98a2ade30b Ignore case in emoji replacement
The capital letters from the user input could still be there since
current_word is lowercase
2023-07-01 00:50:02 +02:00
KindaCrayCray 2cd167b9fa Fix first use of inline emoji picker not appearing
Previously, on the first use of the inline emoji modal, it would not
display the emojis because the display code would not wait for the
network request to resolve.

Now, the modal will appear when the emojis are successfully loaded and
then respond to the keystrokes.
2023-07-01 00:50:02 +02:00
KindaCrayCray f88cd9d8a1 Casefold capital characters in inline search 2023-07-01 00:50:02 +02:00
KindaCrayCray cfc6f9c4b2 Add scrolling when selected emoji is not visible 2023-07-01 00:50:02 +02:00
KindaCrayCray bc8a3dcb9d Clean up emoji modal keyboard nav
Changed arrow keys to wrap around instead. Need to add autoscroll for
for the modal itself.
2023-07-01 00:50:02 +02:00