本文整理了Java中java.awt.event.KeyEvent.isShiftDown()
方法的一些代码示例,展示了KeyEvent.isShiftDown()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。KeyEvent.isShiftDown()
方法的具体详情如下:
包路径:java.awt.event.KeyEvent
类名称:KeyEvent
方法名:isShiftDown
暂无
代码示例来源: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: runelite/runelite
if (ev.isShiftDown())
if (ev.isShiftDown())
代码示例来源:origin: mabe02/lanterna
if(e.isShiftDown()) {
keyQueue.add(new KeyStroke(KeyType.ReverseTab, ctrlDown, altDown, shiftDown));
代码示例来源:origin: org.netbeans.api/org-openide-awt
} else if (keyCode == KeyEvent.VK_UP || (keyCode == KeyEvent.VK_F3 && e.isShiftDown())) {
fireShowNextSelection(false);
代码示例来源:origin: org.netbeans.api/org-netbeans-api-visual
/**
* @see KeyEvent
*/
public boolean isShiftDown() {
return event.isShiftDown();
}
代码示例来源:origin: sc.fiji/Color_Inspector_3D
public void keyReleased (KeyEvent e){
if (!e.isShiftDown())
shift = false;
}
}
代码示例来源:origin: org.apache.jmeter/ApacheJMeter_core
@Override
public void keyPressed(KeyEvent e) {
if (e.getKeyCode() == KeyEvent.VK_UP) {
update(1, e.isShiftDown());
} else if (e.getKeyCode() == KeyEvent.VK_DOWN) {
update(-1, e.isShiftDown());
}
}
}
代码示例来源:origin: stackoverflow.com
public void keyPressed(KeyEvent e) {
if (e.getKeyCode() == KeyEvent.VK_COMMA && e.isShiftDown()) {
// do your thing!
}
}
代码示例来源:origin: eu.mihosoft.vrl/vrl
@Override
public void keyPressed(KeyEvent arg0) {
if (arg0.isShiftDown()
&& arg0.getKeyCode() == KeyEvent.VK_ENTER) {
compileAndAddToCanvas();
}
}
});
代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-client
@Override
public void keyPressed(KeyEvent ke) {
if (ke.getKeyCode() == KeyEvent.VK_PASTE || (ke.isControlDown() && ke.getKeyCode() == KeyEvent.VK_V)
|| (ke.isShiftDown() && ke.getKeyCode() == KeyEvent.VK_INSERT)) {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
refreshTextArea();
}
});
}
}
代码示例来源: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: 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: sc.fiji/Interactive_3D_Surface_Plot
public void keyPressed (KeyEvent e){
if (e.isShiftDown()) {
// System.out.println("Shift");
}
if (e.getKeyChar() == 's') {
number++;
String str = image.getShortTitle() + " (" + number +")";
imageRegion.saveToImageJImage(str);
}
}
}
代码示例来源:origin: nifty-gui/nifty-gui
private void handleKeyEvent(@Nonnull KeyEvent e, boolean isKeyDown) {
int newKeyCode = keyCodeConverter.convertToNiftyKeyCode(e.getKeyCode(), e.getKeyLocation());
keyboardEvents.add(new KeyboardInputEvent(newKeyCode, e
.getKeyChar(), isKeyDown, e.isShiftDown(), e.isControlDown()));
}
代码示例来源:origin: net.imagej/ij-ui-swing
@Override
public void keyReleased(KeyEvent e) {
altDown = e.isAltDown() || e.isAltGraphDown();
shiftDown = e.isShiftDown();
}
@Override
代码示例来源:origin: com.github.nifty-gui/nifty-java2d-renderer
private void handleKeyEvent(@Nonnull KeyEvent e, boolean isKeyDown) {
int newKeyCode = keyCodeConverter.convertToNiftyKeyCode(e.getKeyCode(), e.getKeyLocation());
keyboardEvents.add(new KeyboardInputEvent(newKeyCode, e
.getKeyChar(), isKeyDown, e.isShiftDown(), e.isControlDown()));
}
代码示例来源:origin: net.imagej/imagej-ui-swing
@Override
public void keyReleased(KeyEvent e) {
altDown = e.isAltDown() || e.isAltGraphDown();
shiftDown = e.isShiftDown();
}
@Override
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-swingapp
private String toString(KeyEvent ke) {
if (!ke.isShiftDown() && !ke.isControlDown() && !ke.isAltDown() && !ke.isMetaDown()) {
int modifiers = panel.altCheckbox.isSelected() ? KeyEvent.ALT_MASK : 0;
modifiers = modifiers | (panel.controlCheckbox.isSelected() ? KeyEvent.CTRL_MASK : 0);
modifiers = modifiers | (panel.metaCheckbox.isSelected() ? KeyEvent.META_MASK : 0);
modifiers = modifiers | (panel.shiftCheckbox.isSelected() ? KeyEvent.SHIFT_MASK : 0);
ke = new KeyEvent((Component)ke.getSource(), ke.getID(), ke.getWhen(), modifiers, ke.getKeyCode(), ke.getKeyChar());
}
keyStroke = KeyStroke.getKeyStrokeForEvent(ke);
currentKeyCode = ke.getKeyCode();
return KeyEvent.getKeyText(currentKeyCode);
}
代码示例来源:origin: BaseXdb/basex
@Override
public void keyPressed(final KeyEvent e) {
if(gui.updating) return;
if(ESCAPE.is(e)) gui.fullscreen(false);
if(gui.context.data() == null) return;
if(SPACE.is(e)) {
gui.notify.mark(sc(e) ? 2 : e.isShiftDown() ? 1 : 0, null);
} else if(ENTER.is(e)) {
GUIMenuCmd.C_FILTER.execute(gui);
}
}
内容来源于网络,如有侵权,请联系作者删除!