int (@JdkConstants.InputEventMask int modifiers) { if (BitUtil.isSet(modifiers, InputEvent.SHIFT_MASK)) { modifiers |= InputEvent.SHIFT_DOWN_MASK; } if (BitUtil.isSet(modifiers, InputEvent.ALT_MASK)) { modifiers |= InputEvent.ALT_DOWN_MASK; } if (BitUtil.isSet(modifiers, InputEvent.ALT_GRAPH_MASK)) { modifiers |= InputEvent.ALT_GRAPH_DOWN_MASK; } if (BitUtil.isSet(modifiers, InputEvent.CTRL_MASK)) { modifiers |= InputEvent.CTRL_DOWN_MASK; } if (BitUtil.isSet(modifiers, InputEvent.META_MASK)) { modifiers |= InputEvent.META_DOWN_MASK; } modifiers &= InputEvent.SHIFT_DOWN_MASK | InputEvent.ALT_DOWN_MASK | InputEvent.ALT_GRAPH_DOWN_MASK | InputEvent.CTRL_DOWN_MASK | InputEvent.META_DOWN_MASK; return modifiers; }