IJPL-161717 Fix debugger value popup ignoring IME events

(cherry picked from commit 57e33eab36db7b015baf615735ba3e18fe4664fb)

IJ-CR-146931

GitOrigin-RevId: 674086220222e889d7a89794fb8683067346cedb
This commit is contained in:
Nikita Tsarev
2024-10-16 13:02:40 +02:00
committed by intellij-monorepo-bot
parent 35f30458c7
commit 08b062c7dc

View File

@@ -37,6 +37,7 @@ import com.intellij.ui.awt.RelativePoint;
import com.intellij.ui.popup.list.ListPopupImpl;
import com.intellij.util.Consumer;
import com.intellij.util.ui.JBUI;
import com.intellij.util.ui.UIUtil;
import com.intellij.xdebugger.*;
import com.intellij.xdebugger.breakpoints.XBreakpoint;
import com.intellij.xdebugger.breakpoints.XBreakpointListener;
@@ -229,6 +230,7 @@ public final class DebuggerUIUtil {
public static JBPopup createValuePopup(Project project,
JComponent component,
@Nullable Runnable cancelCallback) {
component.putClientProperty(UIUtil.ENABLE_IME_FORWARDING_IN_POPUP, true);
return createCancelablePopupBuilder(project, component, null, cancelCallback, FULL_VALUE_POPUP_DIMENSION_KEY).createPopup();
}