Fix QInputPanel::invokeAction(Click) not being called on mouse clicks
Fix QInputPanel::invokeAction(Click) not being called on mouse clicks

It appears that the introduction of the KeyRelease event type check in
commit 70cc5c9b7b420ecaf099d5d08fb1b4e8ad81a920 was accidential and meant
to use MouseButtonRelease (in QSGTextInputPrivate::sendMouseEventToInputContext).

This patch also removes the unnecessary QEvent::MouseMove check as well as
the mousePos = -1 setting if the position is out of range. The input methods
do the same check and reset() accordingly anyway.

Change-Id: Icf3638979583d97c066cb639f80fa11f44538d7c
Reviewed-by: Pekka Vuorela <4de5edd7656947fc93a8367bb2f628cf208ca213@nokia.com>
Reviewed-by: Andrew den Exter <5c44ede4e4bee77273938fbabc342a419870e9ab@nokia.com>
Reviewed-by: Joona Petrell <4cf3f41003c6320c11b399af79b52a0fbd355137@nokia.com>

jfaust/qtdeclarative,jfaust/qtdeclarative,crobertd/qtdeclarative,mgrunditz/qtdeclarative-2d,qmlc/qtdeclarative,jfaust/qtdeclarative,qmlc/qtdeclarative,corngood/qtdeclarative,matthewvogt/qtdeclarative,jfaust/qtdeclarative,corngood/qtdeclarative,crobertd/qtdeclarative,jfaust/qtdeclarative,matthewvogt/qtdeclarative,crobertd/qtdeclarative,qmlc/qtdeclarative,crobertd/qtdeclarative,qmlc/qtdeclarative,qmlc/qtdeclarative,mgrunditz/qtdeclarative-2d,mgrunditz/qtdeclarative-2d,jfaust/qtdeclarative,matthewvogt/qtdeclarative,corngood/qtdeclarative,matthewvogt/qtdeclarative,jfaust/qtdeclarative,crobertd/qtdeclarative,corngood/qtdeclarative,qmlc/qtdeclarative,matthewvogt/qtdeclarative,mgrunditz/qtdeclarative-2d,qmlc/qtdeclarative,matthewvogt/qtdeclarative,crobertd/qtdeclarative,mgrunditz/qtdeclarative-2d,matthewvogt/qtdeclarative,corngood/qtdeclarative,crobertd/qtdeclarative,corngood/qtdeclarative,matthewvogt/qtdeclarative,corngood/qtdeclarative,mgrunditz/qtdeclarative-2d,mgrunditz/qtdeclarative-2d,qmlc/qtdeclarative