From 8677fa9eceb04fb07fb398a072d8f967ccb2ac53 Mon Sep 17 00:00:00 2001 From: Egor Ushakov Date: Mon, 4 Mar 2019 14:29:00 +0300 Subject: [PATCH] UX-544 - request focus in editor when showing inplace selector --- .../impl/actions/handlers/XDebuggerSmartStepIntoHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/actions/handlers/XDebuggerSmartStepIntoHandler.java b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/actions/handlers/XDebuggerSmartStepIntoHandler.java index b06cb867de25..4fd0a92ecfa1 100644 --- a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/actions/handlers/XDebuggerSmartStepIntoHandler.java +++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/actions/handlers/XDebuggerSmartStepIntoHandler.java @@ -23,6 +23,7 @@ import com.intellij.openapi.ui.popup.util.BaseListPopupStep; import com.intellij.openapi.util.Key; import com.intellij.openapi.util.Ref; import com.intellij.openapi.util.registry.Registry; +import com.intellij.openapi.wm.IdeFocusManager; import com.intellij.psi.PsiDocumentManager; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiFile; @@ -213,6 +214,7 @@ public class XDebuggerSmartStepIntoHandler extends XDebuggerSuspendedActionHandl } data.select(ContainerUtil.getFirstItem(data.myVariants)); + IdeFocusManager.getGlobalInstance().requestFocus(editor.getContentComponent(), true); } static final Key SMART_STEP_INPLACE_DATA = Key.create("SMART_STEP_INPLACE_DATA");