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

See http://musescore.org/en/node/29946 for details.