diff --git a/platform/platform-tests/testSrc/com/intellij/openapi/editor/impl/ImmediatePainterTest.java b/platform/platform-tests/testSrc/com/intellij/openapi/editor/impl/ImmediatePainterTest.java index 4bce76a78e11..1b582c93b365 100644 --- a/platform/platform-tests/testSrc/com/intellij/openapi/editor/impl/ImmediatePainterTest.java +++ b/platform/platform-tests/testSrc/com/intellij/openapi/editor/impl/ImmediatePainterTest.java @@ -44,6 +44,7 @@ public class ImmediatePainterTest extends AbstractEditorTest { private String myDefaultFontName; private int myDefaultFontSize; private float myDefaultLineSpacing; + private KeyboardFocusManager myDefaultFocusManager; @Override protected void setUp() throws Exception { @@ -52,6 +53,7 @@ public class ImmediatePainterTest extends AbstractEditorTest { myDefaultFontName = getDefaultColorScheme().getEditorFontName(); myDefaultFontSize = getDefaultColorScheme().getEditorFontSize(); myDefaultLineSpacing = getDefaultColorScheme().getLineSpacing(); + myDefaultFocusManager = KeyboardFocusManager.getCurrentKeyboardFocusManager(); FontLayoutService.setInstance(null); @@ -68,6 +70,7 @@ public class ImmediatePainterTest extends AbstractEditorTest { getDefaultColorScheme().setEditorFontName(myDefaultFontName); getDefaultColorScheme().setEditorFontSize(myDefaultFontSize); getDefaultColorScheme().setLineSpacing(myDefaultLineSpacing); + KeyboardFocusManager.setCurrentKeyboardFocusManager(myDefaultFocusManager); } finally { super.tearDown();