Fix #1149 : Disable preview shortcut when a modal dialog is open
Merge pull request #414 from romainneutron/fix-1149

[3.7] Fix #1149 : Disable preview shortcut when a modal dialog is open