Skip successive dialogs while shift is pressed.
Fix error with the new dialog API.