Fix for accepting Tab key in shortcut dialog.