kwhat/jnativehook

How to check which modifiers were pressed?

mgroth0 opened this issue · 1 comments

kwhat commented

I've responded to your stack overflow question.

You need to use the modifier bit-masks:

void nativeKeyTyped(NativeKeyEvent nativeEvent) {
    if (nativeEvent.getModifiers() & NativeInputEvent.META_MASK) {
        // META_MASK (left or right) was pressed.
    }
}