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