Other keyboard shortcuts to open new views (such as Ctrl+H, Ctrl+J, Ctrl+Shift+O) should also be disabled when a javascript dialog is visible (alert, confirm, prompt, beforeunload).
Other keyboard shortcuts to open new views (such as Ctrl+H, Ctrl+J, Ctrl+Shift+O) should also be disabled when a javascript dialog is visible (alert, confirm, prompt, beforeunload).