mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-06 00:34:00 +01:00
onKeyEvent actually happens on multiple events (keypress and keyup at least) Wrapped in an if statement now so we only trigger half the time, meaning half the work, meaning improved usage Clear any existing timeouts and set a new Timeout to trigger the findReplace action in 0.5s This means as you type it's continually clearing & setting timeouts When you pause typing for more then 0.5s, then it'll trigger the findReplace The result is no lag whilst typing and giving find results within inactivity time only
14 KiB
14 KiB