Commit 592b317 1 parent f2a8ad3 commit 592b317 Copy full SHA for 592b317
File tree 2 files changed +4
-0
lines changed
modules/javafx.graphics/src/main/native-glass/mac
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -525,6 +525,8 @@ - (BOOL)handleKeyDown:(NSEvent *)theEvent
525
525
BOOL inputContextHandledEvent = (imEnabled && [self .inputContext handleEvent: theEvent]);
526
526
handlingKeyEvent = NO ;
527
527
528
+ // Returns YES if the event triggered some sort of InputMethod action or
529
+ // if the PRESSED event was consumed by the scene graph.
528
530
BOOL wasConsumed = YES ;
529
531
530
532
if (didCommitText) {
Original file line number Diff line number Diff line change @@ -697,6 +697,8 @@ - (BOOL)sendJavaKeyEvent:(NSEvent *)theEvent isDown:(BOOL)isDown
697
697
}
698
698
else
699
699
{
700
+ // We only return YES if the PRESSED event was consumed. The TextInput
701
+ // control consumes any TYPED event that looks like a shortcut.
700
702
SEND_KEY_EVENT (com_sun_glass_events_KeyEvent_PRESS);
701
703
wasConsumed = thisEventWasConsumed;
702
704
You can’t perform that action at this time.
0 commit comments