refactor 'bullet-prof' TEXTINPUT peeking

after a night sleep, I realised there still was a couple
of cases that weren't covered.