You might want to re-read what was being said. It already resets the idle time regardless of whether or not you halt the input event. The request is for it to NOT reset the idle time. Yours really doesn't do anything special because it will already be reset automatically.
I still don't see a legitimate reason for the local idle time to not be reset when you do something. Obviously, if you do something, you're not idle.