java.awt.event.KeyEvent.isAltGraphDown()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(146)

本文整理了Java中java.awt.event.KeyEvent.isAltGraphDown()方法的一些代码示例,展示了KeyEvent.isAltGraphDown()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。KeyEvent.isAltGraphDown()方法的具体详情如下:
包路径:java.awt.event.KeyEvent
类名称:KeyEvent
方法名:isAltGraphDown

KeyEvent.isAltGraphDown介绍

暂无

代码示例

代码示例来源:origin: in.jlibs/org-netbeans-api-visual

/**
 * @see KeyEvent
 */
public boolean isAltGraphDown() {
  return event.isAltGraphDown();
}

代码示例来源:origin: org.netbeans.api/org-netbeans-api-visual

/**
 * @see KeyEvent
 */
public boolean isAltGraphDown() {
  return event.isAltGraphDown();
}

代码示例来源:origin: net.imagej/ij-ui-swing

@Override
public void keyPressed(KeyEvent e) {
  altDown = e.isAltDown() || e.isAltGraphDown();
  shiftDown = e.isShiftDown();
  /* no longer supported
  if (e.getKeyCode() == KeyEvent.VK_T) add();
  */
  if (e.getKeyCode() == KeyEvent.VK_F) flatten();
  if (e.getKeyCode() == KeyEvent.VK_DELETE) delete();
}
@Override

代码示例来源:origin: net.imagej/imagej-ui-swing

@Override
public void keyPressed(KeyEvent e) {
  altDown = e.isAltDown() || e.isAltGraphDown();
  shiftDown = e.isShiftDown();
  /* no longer supported
  if (e.getKeyCode() == KeyEvent.VK_T) add();
  */
  if (e.getKeyCode() == KeyEvent.VK_F) flatten();
  if (e.getKeyCode() == KeyEvent.VK_DELETE) delete();
}
@Override

代码示例来源:origin: net.imagej/ij-ui-swing

@Override
public void keyReleased(KeyEvent e) {
  altDown = e.isAltDown() || e.isAltGraphDown();
  shiftDown = e.isShiftDown();
}
@Override

代码示例来源:origin: net.imagej/imagej-ui-swing

@Override
public void keyReleased(KeyEvent e) {
  altDown = e.isAltDown() || e.isAltGraphDown();
  shiftDown = e.isShiftDown();
}
@Override

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@ScriptFunction(jsDoc = ALT_DOWN_JS_DOC)
public boolean isAltDown() {
  return delegate.isAltDown() || delegate.isAltGraphDown();
}

代码示例来源:origin: AliView/AliView

public void keyTyped(KeyEvent e){
  logger.info("is typed");
  if(e.isControlDown() || e.isAltDown() || e.isAltGraphDown() || e.isMetaDown()){
    // Skip
  }else{
    char typed = e.getKeyChar();
    String allowedChars = "QWERTYUIOPASDFGHJKLZXCVBNM?qwertyuiopasdfghjklzxcvbnm";
    if(allowedChars.indexOf(typed) > -1){
      if(aliViewWindow.requestEditMode()){		
        replaceSelectedWithChar(typed);
      }
    }
  }
}

代码示例来源:origin: eu.mihosoft.vrl/vrl

@Override
  public void keyReleased(KeyEvent e) {
    if (!e.isAltDown() && !e.isAltGraphDown() && !e.isControlDown()
        && !e.isMetaDown() && !e.isShiftDown()) {
      searchFieldKeyReleased(e);
    }
  }
});

代码示例来源:origin: AliView/AliView

public void keyPressed(KeyEvent e) {
  //logger.info("keyPressed Time from last endTim " + (System.currentTimeMillis() - alignmentPane.getEndTime()) + " milliseconds");
  // Skip if any modifier but shift is down
  if(e.isControlDown() || e.isAltDown() || e.isAltGraphDown() || e.isMetaDown()){
    return;
  }
  // only if selection - otherwise key-press should be forwarded to scrollbars
  if(alignment.hasSelection()){
    if(e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP){
      e.consume();
      scrollToCursor(KeyEvent.VK_UP);
      moveCursorUp(e.isShiftDown());
    }
    if(e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN){
      e.consume();
      scrollToCursor(KeyEvent.VK_DOWN);
      moveCursorDown(e.isShiftDown());
    }
    if(e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT){
      e.consume();
      scrollToCursor(KeyEvent.VK_LEFT);
      moveCursorLeft(e.isShiftDown());
    }
    if(e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT){
      e.consume();
      scrollToCursor(KeyEvent.VK_RIGHT);
      moveCursorRight(e.isShiftDown());
    }
  }
}

代码示例来源:origin: chatty/chatty

@Override
public void keyReleased(KeyEvent e) {
  if (e.getKeyCode() == KeyEvent.VK_TAB) {
    if (e.isControlDown() || e.isAltDown() || e.isAltGraphDown()) {
      return;
    }
    if (e.isShiftDown()) {
      if (autoCompletion.inCompletion()) {
        autoCompletion.doAutoCompletion(null, false);
      } else {
        autoCompletion.doAutoCompletion("special", true);
      }
    } else {
      autoCompletion.doAutoCompletion(null, true);
    }
  } else if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {
    autoCompletion.cancelAutoCompletion();
  }
}

代码示例来源:origin: freeplane/freeplane

protected boolean isSplitActionTriggered(final KeyEvent e) {
  final int keyCode = e.getKeyCode();
  if (keyCode == SPLIT_KEY_CODE && keyCode != -1 && e.isAltDown()&& !e.isAltGraphDown()&& !e.isControlDown() && ! Compat.isMacOsX())
    return true;
  final KeyStroke splitNodeHotKey = ResourceController.getResourceController().getAcceleratorManager().getAccelerator("SplitNode");
  return splitNodeHotKey != null && splitNodeHotKey.getKeyCode() == keyCode  &&
      (e.getModifiersEx() & KEYSTROKE_MODIFIERS)  == (splitNodeHotKey.getModifiers() & KEYSTROKE_MODIFIERS);
}

代码示例来源:origin: eu.mihosoft.vrl/vrl

|| ((KeyEvent) event).isAltGraphDown()
|| ((KeyEvent) event).isControlDown()
|| ((KeyEvent) event).isShiftDown()

相关文章