mapper.removeKeyStroke((String)functions.getSelectedValue());
Object o = functions.getSelectedValue(); String name; if (o instanceof Macro) { name = ((Macro)o).getFullName(); } else { name = (String)o; } mapper.removeKeyStroke(name);
   private void removeIt() {      if (!macros && !special) {         int index = ((KeyDescription)functions.getSelectedValue()).getIndex();         mapper.removeKeyStroke(mnemonicData[index]);         strokeDesc.setText(mapper.getKeyStrokeDesc(                           mnemonicData[index]));      }      else {         if (macros) {            mapper.removeKeyStroke((String)functions.getSelectedValue());            strokeDesc.setText(mapper.getKeyStrokeDesc(                              (String)functions.getSelectedValue()));         }         if (special) {            String k = "";            k += ((String)functions.getSelectedValue()).charAt(7);            mapper.removeKeyStroke(k);            strokeDesc.setText(mapper.getKeyStrokeDesc(                              (String)functions.getSelectedValue()));         }      }      mods = true;   }