Remove apparently-needless event.stopPropagation
Close available widgets panel if focus returns to customize panel