only trigger shellCommand event when modal is open