Prevent opening of dialog if shift key is held down. Allows other functionality to hook if that's the case