check contextmenu to prevent launching the app if a contextmenu event is triggered