mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2026-01-23 17:00:57 +01:00
JBR-1841: allow deferred disabling of InputMethods-support
(cherry picked from commit 969255904b)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user