Fix #29946 - Input via mouse in TAB's disrupts input cursor position