private void checkDuplicate ( ) { KeyboardShortcut ks = this . getDuplicate ( ) ; if ( ks != null ) { this . setFieldValue ( FIELD_INFO , Constant . messages . getString ( "keyboard.dialog.warning.dup" , ks . getName ( ) ) ) ; } else { this . setFieldValue ( FIELD_INFO , "" ) ; } }
Checks to see if the chosen shortcut is already being used and if so shows a message warning the user