[fix] deactivate mouse if mouse event is mapped to a non-mouse action
Merge pull request #2533 from petriposio/master

[mouse] reworks the order of the mouse event handling (issue #2315)