#596 Make sure tool menu stays open after a long-press (Harsh Patel)

git-svn-id: http://dev.geogebra.org/svn/trunk/geogebra@24027 23ce0884-8a58-47d3-bc5c-ddf1cd5b9f9e
Ticket #3107: fixed problem related to wrong place of some code

git-svn-id: http://dev.geogebra.org/svn/trunk/geogebra@24028 23ce0884-8a58-47d3-bc5c-ddf1cd5b9f9e
Ticket #3107: checking and correcting previous commit

git-svn-id: http://dev.geogebra.org/svn/trunk/geogebra@24029 23ce0884-8a58-47d3-bc5c-ddf1cd5b9f9e