implement buttonOk of dialog preference action
DialogActionPreferences check the validity ShortcutKey