Stop depending on this.focusedChild to find the !MenuItem that popped up the Menu.   It may not be set.   Fixes #16784 !strict.

Also change use of deprecated connect() method, and use simpler check to tell if focus has been moved out of the !MenuBar hierarchy or is on a descendant.