File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/java.desktop/macosx/native/libawt_lwawt/awt Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 39
39
// keyboard layout
40
40
static NSString *kbdLayout;
41
41
42
+ // Constant for keyman layouts
43
+ #define KEYMAN_LAYOUT " keyman"
44
+
42
45
@interface AWTView ()
43
46
@property (retain ) CDropTarget *_dropTarget;
44
47
@property (retain ) CDragSource *_dragSource;
@@ -281,7 +284,7 @@ - (void) scrollWheel: (NSEvent*) event {
281
284
282
285
- (void ) keyDown : (NSEvent *)event {
283
286
fProcessingKeystroke = YES ;
284
- fKeyEventsNeeded = YES ;
287
+ fKeyEventsNeeded = ![( NSString *)kbdLayout containsString: @KEYMAN_LAYOUT] ;
285
288
286
289
// Allow TSM to look at the event and potentially send back NSTextInputClient messages.
287
290
[self interpretKeyEvents: [NSArray arrayWithObject: event]];
@@ -989,7 +992,7 @@ - (void) insertText:(id)aString replacementRange:(NSRange)replacementRange
989
992
990
993
if ((utf16Length > 2 ) ||
991
994
((utf8Length > 1 ) && [self isCodePointInUnicodeBlockNeedingIMEvent: codePoint]) ||
992
- ((codePoint == 0x5c ) && ( [(NSString *)kbdLayout containsString: @" Kotoeri " ])) ) {
995
+ [(NSString *)kbdLayout containsString: @KEYMAN_LAYOUT] ) {
993
996
aStringIsComplex = YES ;
994
997
}
995
998
You can’t perform that action at this time.
0 commit comments