Don't execute commands from the shell when a modal dialog is open.
Merge pull request #2617 from adobe/glenn/issue-2616

Don't execute commands from the shell when a modal dialog is open.