< prev index next >

open/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTEvent.m

Print this page

        

*** 480,490 **** if ([[NSCharacterSet decimalDigitCharacterSet] characterIsMember:ch]) { // key is a digit offset = ch - '0'; // make sure in range for decimal digits if (offset >= 0 && offset <= 9) { ! jboolean numpad = (flags & NSNumericPadKeyMask) != 0; *postsTyped = YES; if (numpad) { *keyCode = offset + java_awt_event_KeyEvent_VK_NUMPAD0; *keyLocation = java_awt_event_KeyEvent_KEY_LOCATION_NUMPAD; } else { --- 480,491 ---- if ([[NSCharacterSet decimalDigitCharacterSet] characterIsMember:ch]) { // key is a digit offset = ch - '0'; // make sure in range for decimal digits if (offset >= 0 && offset <= 9) { ! jboolean numpad = ((flags & NSNumericPadKeyMask) && ! (key > 81 && key < 93)); *postsTyped = YES; if (numpad) { *keyCode = offset + java_awt_event_KeyEvent_VK_NUMPAD0; *keyLocation = java_awt_event_KeyEvent_KEY_LOCATION_NUMPAD; } else {
< prev index next >