Fix bug that allowed a project to be run or saved via shortcuts even if the browser was blocked by a static modal.