public class GlobalKeyEventDispatcher extends Object implements KeyEventDispatcher
KeyEventDispatcher
hook that allows to share state of modifier
keys between MouseAndKeyHandler
in different windows of the
application.Modifier and Type | Method and Description |
---|---|
boolean |
dispatchKeyEvent(KeyEvent e) |
static GlobalKeyEventDispatcher |
getInstance() |
boolean |
metaPressed() |
gnu.trove.set.TIntSet |
pressedKeys() |
boolean |
shiftPressed() |
boolean |
winPressed() |
public static GlobalKeyEventDispatcher getInstance()
public gnu.trove.set.TIntSet pressedKeys()
public boolean shiftPressed()
public boolean metaPressed()
public boolean winPressed()
public boolean dispatchKeyEvent(KeyEvent e)
dispatchKeyEvent
in interface KeyEventDispatcher
Copyright © 2015–2022 SciJava. All rights reserved.