Change logics on submenus

When i click on menu who has submenu, it's will be closed. This patch changed this logics. If menu has submenu, when click on him, cursor jump in children menu, and menu not close.