Examples of unregisterShortcut()


Examples of org.spoutcraft.client.controls.SimpleKeyBindingManager.unregisterShortcut()

    if (btn.equals(doneButton)) {
      item.setTitle(commandName.getText());
      item.setDelay(Integer.parseInt(delayText.getText()));
      if (!item.getTitle().equals("") && item.getKey() != -1) {
        SimpleKeyBindingManager manager = (SimpleKeyBindingManager) SpoutClient.getInstance().getKeyBindingManager();
        manager.unregisterShortcut(item);
        manager.registerShortcut(item);
      }
      mc.displayGuiScreen(parent);
      parent.getModel().refresh();
    }
View Full Code Here

Examples of org.spoutcraft.client.controls.SimpleKeyBindingManager.unregisterShortcut()

    KeyBindingItem binding = null;
    if (item != null && item instanceof KeyBindingItem) {
      binding = (KeyBindingItem) item;
    }
    if (sh != null) {
      man.unregisterShortcut(sh.getShortcut());
      man.save();
    } else if (binding != null) {
      man.unregisterControl(binding.getBinding());
      man.save();
      model.refresh();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.