diff options
author | Alexey Ushakov <Alexey.Ushakov@jetbrains.com> | 2018-10-23 23:01:46 +0300 |
---|---|---|
committer | Alexey Ushakov <Alexey.Ushakov@jetbrains.com> | 2018-10-23 23:01:46 +0300 |
commit | 72f626b073493b3f9c95ea15c77db0b3fc3721fc (patch) | |
tree | 60648453da32ea25d7553a0d1e528ceaad7a0c7a | |
parent | f071682b6555c30b69340e036685aac72aab54a3 (diff) | |
download | jdk8u_jdk-72f626b073493b3f9c95ea15c77db0b3fc3721fc.tar.gz |
JRE-998 Input freezes after MacOS key-selector on Mojave
Added workaround to reset IM after entering accented symbols
-rw-r--r-- | src/macosx/native/sun/awt/AWTView.m | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/macosx/native/sun/awt/AWTView.m b/src/macosx/native/sun/awt/AWTView.m index be70a1d649..8868a53092 100644 --- a/src/macosx/native/sun/awt/AWTView.m +++ b/src/macosx/native/sun/awt/AWTView.m @@ -1212,6 +1212,18 @@ JNF_CLASS_CACHE(jc_CInputMethod, "sun/lwawt/macosx/CInputMethod"); } fPAHNeedsToSelect = NO; + // Abandon input to reset IM and unblock input after entering accented symbols + // (macOS 10.14+ only) + + static NSOperatingSystemVersion minOSVersion = { + .majorVersion = 10, + .minorVersion = 14, + .patchVersion = 0 + }; + + if ([NSProcessInfo.processInfo isOperatingSystemAtLeastVersion:minOSVersion]) { + [self abandonInput]; + } } - (void) doCommandBySelector:(SEL)aSelector |