Examples of keyPressed()


Examples of charva.awt.event.KeyListener.keyPressed()

      for (Enumeration<KeyListener> e = _keyListeners.elements();
        e.hasMoreElements(); ) {

    KeyListener kl = (KeyListener) e.nextElement();
    if (ke_.getID() == AWTEvent.KEY_PRESSED)
        kl.keyPressed(ke_);
    else if (ke_.getID() == AWTEvent.KEY_TYPED)
        kl.keyTyped(ke_);

    if (ke_.isConsumed())
        break;
View Full Code Here

Examples of com.cburch.logisim.tools.Tool.keyPressed()

    //
    // KeyListener methods
    //
    public void keyPressed(KeyEvent e) {
      Tool tool = proj.getTool();
      if (tool != null) tool.keyPressed(Canvas.this, e);
    }
    public void keyReleased(KeyEvent e) {
      Tool tool = proj.getTool();
      if (tool != null) tool.keyReleased(Canvas.this, e);
    }
View Full Code Here

Examples of java.awt.event.KeyListener.keyPressed()

    {
      final KeyListener[] keyListeners = listenerList.getListeners(KeyListener.class);
      for (int i = 0; i < keyListeners.length; i++)
      {
        final KeyListener keyListener = keyListeners[i];
        keyListener.keyPressed(e);
      }
    }

    /**
     * Invoked when a key has been released.
View Full Code Here

Examples of java.awt.event.KeyListener.keyPressed()

    {
      final KeyListener[] keyListeners = listenerList.getListeners(KeyListener.class);
      for (int i = 0; i < keyListeners.length; i++)
      {
        final KeyListener keyListener = keyListeners[i];
        keyListener.keyPressed(e);
      }
    }

    /**
     * Invoked when a key has been released.
View Full Code Here

Examples of java.awt.event.KeyListener.keyPressed()

    int modifier = key.getModifier().getCode();
    KeyEvent event = new KeyEvent(component, KeyEvent.KEY_PRESSED, 0, modifier, keyCode, (char)keyCode);
    if (component.getKeyListeners().length > 0) {
      for (int i = 0; i < component.getKeyListeners().length; i++) {
        KeyListener keyListener = component.getKeyListeners()[i];
        keyListener.keyPressed(event);
      }
    }
    SwingUtilities.processKeyBindings(event);
  }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.View.keyPressed()

            // throw new ObjectAdapterRuntimeException("No focus set");
            LOG.debug("No focus set");
            return;
        }

        keyboardFocus.keyPressed(keyboardAction);

        if (keyboardAction.isConsumed()) {
            return;
        }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.View.keyPressed()

            // throw new ObjectAdapterRuntimeException("No focus set");
            LOG.debug("No focus set");
            return;
        }

        keyboardFocus.keyPressed(keyboardAction);

        if (keyboardAction.isConsumed()) {
            return;
        }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.View.keyPressed()

            // throw new ObjectAdapterRuntimeException("No focus set");
            LOG.debug("No focus set");
            return;
        }

        keyboardFocus.keyPressed(keyboardAction);

        if (keyboardAction.isConsumed()) {
            return;
        }
View Full Code Here

Examples of org.seattlegamer.spacegame.core.Input.keyPressed()

   
    int keyCode = KeyEvent.VK_SPACE;
   
    Input input = new Input();
    assertFalse(input.isKeyInputActive(keyCode));
    input.keyPressed(getMockKeyEvent(keyCode));
    assertTrue(input.isKeyInputActive(keyCode));

  }
 
  @Test
View Full Code Here

Examples of org.seattlegamer.spacegame.core.Input.keyPressed()

  public void keyReleasesAreRecordedCorrectly() {
   
    int keyCode = KeyEvent.VK_SPACE;

    Input input = new Input();
    input.keyPressed(getMockKeyEvent(keyCode));
    assertTrue(input.isKeyInputActive(keyCode));
    input.keyReleased(getMockKeyEvent(keyCode));
    assertFalse(input.isKeyInputActive(keyCode));
   
  }
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.