Package org.waveprotocol.wave.client.common.util.SignalEvent

Examples of org.waveprotocol.wave.client.common.util.SignalEvent.KeySignalType


      return;
    } else {
      throw new AssertionError("Non-key-event passed to computeKeySignalType");
    }

    KeySignalType type;

    int computedKeyCode = which != 0 ? which : keyCode;

    if (computedKeyCode == 10) {
      computedKeyCode = KeyCodes.KEY_ENTER;
View Full Code Here


      }
    }
  }

  private boolean handleKeyEvent(EditorEvent event) throws SelectionLostException {
    KeySignalType keySignalType = event.getKeySignalType();

    switch (state) {
      case NORMAL:
        if (isAccelerator(event)) {
          refreshEditorWithCaret(event);
View Full Code Here

  private boolean shouldTrackCursor(SignalEvent event) {
    if (event.isMouseButtonEvent()) {
      return true;
    }
    if (event.isKeyEvent()) {
      KeySignalType keySignalType = event.getKeySignalType();
      // The cursor location should move if the user either has modified the
      // content (typed or delete), or move the cursor deliberately.  However, page up/down
      // doesn't actually move the cursor, so we don't want to move the view port
      int keyCode = event.getKeyCode();
      return keySignalType == KeySignalType.INPUT ||
View Full Code Here

    if (ascii > 255) {
      // out of handling range - all keycodes handled are under 256
      return ascii;
    }

    KeySignalType type = event.getKeySignalType();
    if (type != KeySignalType.INPUT) {
      // convert these non-ascii characters to new unicode private area
      if (KeyCode.F1 <= ascii && ascii <= KeyCode.F12) {
        ascii = (ascii - KeyCode.F1) + F1;
      }
View Full Code Here

      }
    }
  }

  private boolean handleKeyEvent(EditorEvent event) throws SelectionLostException {
    KeySignalType keySignalType = event.getKeySignalType();

    switch (state) {
      case NORMAL:
        if (isAccelerator(event)) {
          refreshEditorWithCaret(event);
View Full Code Here

  private boolean shouldTrackCursor(SignalEvent event) {
    if (event.isMouseButtonEvent()) {
      return true;
    }
    if (event.isKeyEvent()) {
      KeySignalType keySignalType = event.getKeySignalType();
      // The cursor location should move if the user either has modified the
      // content (typed or delete), or move the cursor deliberately.  However, page up/down
      // doesn't actually move the cursor, so we don't want to move the view port
      int keyCode = event.getKeyCode();
      return keySignalType == KeySignalType.INPUT ||
View Full Code Here

      return;
    } else {
      throw new AssertionError("Non-key-event passed to computeKeySignalType");
    }

    KeySignalType type;

    int computedKeyCode = which != 0 ? which : keyCode;

    if (computedKeyCode == 10) {
      computedKeyCode = KeyCodes.KEY_ENTER;
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.client.common.util.SignalEvent.KeySignalType

Copyright © 2018 www.massapicom. 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.