8195675: Call to insertText with single character from custom Input Method ignored
Reviewed-by: prr
This commit is contained in:
parent
0f3e2cc334
commit
b8f2ec9091
@ -38,6 +38,9 @@
|
|||||||
// keyboard layout
|
// keyboard layout
|
||||||
static NSString *kbdLayout;
|
static NSString *kbdLayout;
|
||||||
|
|
||||||
|
// Constant for keyman layouts
|
||||||
|
#define KEYMAN_LAYOUT "keyman"
|
||||||
|
|
||||||
@interface AWTView()
|
@interface AWTView()
|
||||||
@property (retain) CDropTarget *_dropTarget;
|
@property (retain) CDropTarget *_dropTarget;
|
||||||
@property (retain) CDragSource *_dragSource;
|
@property (retain) CDragSource *_dragSource;
|
||||||
@ -259,7 +262,7 @@ static BOOL shouldUsePressAndHold() {
|
|||||||
|
|
||||||
- (void) keyDown: (NSEvent *)event {
|
- (void) keyDown: (NSEvent *)event {
|
||||||
fProcessingKeystroke = YES;
|
fProcessingKeystroke = YES;
|
||||||
fKeyEventsNeeded = YES;
|
fKeyEventsNeeded = ![(NSString *)kbdLayout containsString:@KEYMAN_LAYOUT];
|
||||||
|
|
||||||
// Allow TSM to look at the event and potentially send back NSTextInputClient messages.
|
// Allow TSM to look at the event and potentially send back NSTextInputClient messages.
|
||||||
[self interpretKeyEvents:[NSArray arrayWithObject:event]];
|
[self interpretKeyEvents:[NSArray arrayWithObject:event]];
|
||||||
@ -965,7 +968,7 @@ static jclass jc_CInputMethod = NULL;
|
|||||||
|
|
||||||
if ((utf16Length > 2) ||
|
if ((utf16Length > 2) ||
|
||||||
((utf8Length > 1) && [self isCodePointInUnicodeBlockNeedingIMEvent:codePoint]) ||
|
((utf8Length > 1) && [self isCodePointInUnicodeBlockNeedingIMEvent:codePoint]) ||
|
||||||
((codePoint == 0x5c) && ([(NSString *)kbdLayout containsString:@"Kotoeri"]))) {
|
[(NSString *)kbdLayout containsString:@KEYMAN_LAYOUT]) {
|
||||||
#ifdef IM_DEBUG
|
#ifdef IM_DEBUG
|
||||||
NSLog(@"string complex ");
|
NSLog(@"string complex ");
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user