本文整理了Java中java.awt.event.KeyEvent.isAltDown()
方法的一些代码示例,展示了KeyEvent.isAltDown()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。KeyEvent.isAltDown()
方法的具体详情如下:
包路径:java.awt.event.KeyEvent
类名称:KeyEvent
方法名:isAltDown
暂无
代码示例来源:origin: runelite/runelite
@Override
public void keyReleased(KeyEvent e)
{
if (!e.isAltDown())
{
plugin.setHotKeyPressed(false);
}
}
}
代码示例来源:origin: runelite/runelite
@Override
public void keyPressed(KeyEvent e)
{
if (e.isAltDown())
{
plugin.setHotKeyPressed(true);
}
}
代码示例来源:origin: runelite/runelite
@Override
public void keyReleased(KeyEvent e)
{
if (!e.isAltDown())
{
inOverlayDraggingMode = false;
}
if (!e.isShiftDown())
{
inMenuEntryMode = false;
}
}
代码示例来源:origin: runelite/runelite
@Override
public void keyPressed(KeyEvent e)
{
if (e.isAltDown())
{
inOverlayDraggingMode = true;
}
if (e.isShiftDown() && runeLiteConfig.menuEntryShift())
{
inMenuEntryMode = true;
}
}
代码示例来源:origin: in.jlibs/org-netbeans-api-visual
/**
* @see KeyEvent
*/
public boolean isAltDown() {
return event.isAltDown();
}
代码示例来源:origin: org.netbeans.api/org-netbeans-api-visual
/**
* @see KeyEvent
*/
public boolean isAltDown() {
return event.isAltDown();
}
代码示例来源:origin: ron190/jsql-injection
keyEvent.isAltDown()
&& keyEvent.getKeyCode() == (KeyEvent.VK_ALT & KeyEvent.VK_D)
keyEvent.isAltDown()
&& keyEvent.getKeyCode() == KeyEvent.VK_ALT
&& !this.wasAltGraphPressed[0]
代码示例来源: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: BaseXdb/basex
/**
* Returns true if the pressed key is a modifier key (including 'escape' and 'tab' + control key).
* @param e key event
* @return result of check
*/
public static boolean modifier(final KeyEvent e) {
final int c = e.getKeyCode();
return c == VK_ALT || c == VK_SHIFT || c == VK_META || c == VK_CONTROL ||
c == VK_PAUSE || c == VK_CAPS_LOCK || c == VK_ESCAPE ||
c == VK_TAB && (e.isAltDown() || e.isMetaDown() || e.isControlDown());
}
代码示例来源:origin: xyz.cofe/gui.swing
@Override
public void recive(KeyEvent ke) {
if( ke==null )return;
if( ke.isControlDown() && !ke.isShiftDown() && !ke.isAltDown()
&& ke.getKeyCode()==KeyEvent.VK_E
){
autoResizeCell(ke);
}
}
});
代码示例来源:origin: BaseXdb/basex
/**
* Returns true if the pressed key includes a control key.
* @param e key event
* @return result of check
*/
public static boolean control(final KeyEvent e) {
// With Mac, special characters are available via ALT
return e.isControlDown() || e.isMetaDown() || !MAC && e.isAltDown();
}
代码示例来源:origin: net.imagej/ij-ui-swing
@Override
public void keyReleased(KeyEvent e) {
altDown = e.isAltDown() || e.isAltGraphDown();
shiftDown = e.isShiftDown();
}
@Override
代码示例来源:origin: org.basex/basex
/**
* Returns true if the pressed key includes a control key.
* @param e key event
* @return result of check
*/
public static boolean control(final KeyEvent e) {
// With Mac, special characters are available via ALT
return e.isControlDown() || e.isMetaDown() || !MAC && e.isAltDown();
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-swingapp
private void setModifiers(KeyEvent ke) {
if (ke.isShiftDown() || ke.isControlDown() || ke.isAltDown() || ke.isMetaDown()) {
panel.shiftCheckbox.setSelected(ke.isShiftDown());
panel.controlCheckbox.setSelected(ke.isControlDown());
panel.altCheckbox.setSelected(ke.isAltDown());
panel.metaCheckbox.setSelected(ke.isMetaDown());
}
}
代码示例来源:origin: sc.fiji/Simple_Neurite_Tracer
@Override
public void keyPressed(final KeyEvent e) {
final int keyCode = e.getKeyCode();
if (e.isShiftDown() && (e.isControlDown() || e.isAltDown()) && (keyCode == KeyEvent.VK_A)) {
IJ.error("You seem to be trying to start Sholl analysis, but the focus is on the wrong window.\n"
+ "Bring the (2D) image window to the foreground and try again.");
e.consume();
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
boolean isTypeAheadKey(KeyEvent e)
{
return !e.isAltDown() && !e.isControlDown() && !e.isMetaDown();
}
}
代码示例来源:origin: net.imagej/imagej-ui-swing
@Override
public void keyReleased(KeyEvent e) {
altDown = e.isAltDown() || e.isAltGraphDown();
shiftDown = e.isShiftDown();
}
@Override
代码示例来源:origin: JetBrains/jediterm
public static boolean isReallyTypedEvent(KeyEvent e) {
char c = e.getKeyChar();
if (c < 0x20 || c == 0x7F) return false;
if (SystemInfo.isMac) {
return !e.isMetaDown() && !e.isControlDown();
}
return !e.isAltDown() && !e.isControlDown();
}
代码示例来源: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: 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);
}
内容来源于网络,如有侵权,请联系作者删除!