JBR-1841: allow deferred disabling of InputMethods-support

(cherry picked from commit 969255904b)
This commit is contained in:
Artem Bochkarev
2019-09-13 16:05:01 +03:00
committed by jbrbot
parent 013b0c5cc9
commit 51dfaa476a

View File

@@ -614,6 +614,8 @@ public abstract class Component implements ImageObserver, MenuContainer,
*/
long eventMask = AWTEvent.INPUT_METHODS_ENABLED_MASK;
private static boolean INPUT_METHODS_DISABLED;
/**
* Static properties for incremental drawing.
* @see #imageUpdate
@@ -10543,5 +10545,11 @@ public abstract class Component implements ImageObserver, MenuContainer,
void updateZOrder() {
peer.setZOrder(getHWPeerAboveMe());
}
/**
* Disable IM-events dispatching (global).
* Usage of IM under Linux can cause freezes and crashes, disabling increases stability
*/
public static void disableInputMethodSupport() {
INPUT_METHODS_DISABLED = true;
}
}