< prev index next >
src/java.desktop/unix/classes/sun/awt/X11/XWindow.java
Print this page
@@ -619,11 +619,11 @@
static boolean isWheel(int button) {
// 4 and 5 buttons are usually considered assigned to a first wheel
return button == XConstants.buttons[3] || button == XConstants.buttons[4];
}
-
+ @SuppressWarnings("deprecation")
static int getXModifiers(AWTKeyStroke stroke) {
int mods = stroke.getModifiers();
int res = 0;
if ((mods & (InputEvent.SHIFT_DOWN_MASK | InputEvent.SHIFT_MASK)) != 0) {
res |= XConstants.ShiftMask;
< prev index next >