mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-11-05 09:36:19 +00:00
033378333f
One common issue we get when a program exits after handling a "key" event is that it leaves the "char" event on the queue. This means that the shell (or whatever program we switch in to) then receives the "char" event, often displaying it to the screen. Previously we've got around this by doing sleep(0) before exiting the program. However, we also see this problem in edit's run handler script, and I'm less comfortable doing the same hack there. This adds a new internal discard_char function, which will either wait one tick or return when seeing a char/key_up event. Fixes #1705 |
||
---|---|---|
.. | ||
common | ||
common-api | ||
core | ||
core-api | ||
fabric | ||
fabric-api | ||
forge | ||
forge-api | ||
lints | ||
standalone | ||
web | ||
ARCHITECTURE.md |