Skip to content

Commit 592b317

Browse files
committed
Added some comments
1 parent f2a8ad3 commit 592b317

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

modules/javafx.graphics/src/main/native-glass/mac/GlassView3D.m

+2
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,8 @@ - (BOOL)handleKeyDown:(NSEvent *)theEvent
525525
BOOL inputContextHandledEvent = (imEnabled && [self.inputContext handleEvent:theEvent]);
526526
handlingKeyEvent = NO;
527527

528+
// Returns YES if the event triggered some sort of InputMethod action or
529+
// if the PRESSED event was consumed by the scene graph.
528530
BOOL wasConsumed = YES;
529531

530532
if (didCommitText) {

modules/javafx.graphics/src/main/native-glass/mac/GlassViewDelegate.m

+2
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,8 @@ - (BOOL)sendJavaKeyEvent:(NSEvent *)theEvent isDown:(BOOL)isDown
697697
}
698698
else
699699
{
700+
// We only return YES if the PRESSED event was consumed. The TextInput
701+
// control consumes any TYPED event that looks like a shortcut.
700702
SEND_KEY_EVENT(com_sun_glass_events_KeyEvent_PRESS);
701703
wasConsumed = thisEventWasConsumed;
702704

0 commit comments

Comments
 (0)