Fixed behavior of contextmenu mouse event on menu and sub-memus.