mirror of
https://github.com/discourse/discourse.git
synced 2025-02-23 08:18:39 +08:00

Followup 30fdd7738ec942126bb055c9a6a8d69ddffba2da, The issue with keyup is that it happens too late. maybeContinueList itself runs in about 1 or 2 ms. But we show the linebreak in the textarea on keydown and we handle it in keyup, which causes the “lag”. The fix here is “hacking” itsatrap and textarea behavior to allow us to handle it right away after the linebreak is inserted. Full credit to Joffrey Jaffeux for this fix, I am making him "co-author" below. Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>