< prev index next >

## src/java.desktop/windows/native/libawt/windows/awt_Component.cpp

Print this page

    @@ -3535,19 +3535,14 @@

         // apply modifiers to keyboard state if necessary
         BOOL shiftIsDown = FALSE;
         if (modifiers) {
             shiftIsDown = modifiers & java_awt_event_InputEvent_SHIFT_DOWN_MASK;
    -        BOOL altIsDown = modifiers & java_awt_event_InputEvent_ALT_DOWN_MASK;
    +        BOOL altIsDown = ((modifiers & java_awt_event_InputEvent_ALT_DOWN_MASK) ||
    +                            (modifiers & java_awt_event_InputEvent_ALT_GRAPH_DOWN_MASK));
             BOOL ctrlIsDown = modifiers & java_awt_event_InputEvent_CTRL_DOWN_MASK;

    -        // Windows treats AltGr as Ctrl+Alt
    -        if (modifiers & java_awt_event_InputEvent_ALT_GRAPH_DOWN_MASK) {
    -            altIsDown = TRUE;
    -            ctrlIsDown = TRUE;
    -        }
    -
             if (shiftIsDown) {
                 keyboardState[VK_SHIFT] |= KEY_STATE_DOWN;
             }

             // fix for 4623376,4737679,4501485,4740906,4708221 (4173679/4122715)

< prev index next >