void () { // With a screen reader active, set the focus directly to the editor because // it makes it easier for users to read/navigate the documentation contents. IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() -> { if (ScreenReader.isActive()) { IdeFocusManager.getGlobalInstance().requestFocus(myEditorPane, true); } else { IdeFocusManager.getGlobalInstance().requestFocus(myScrollPane, true); } }); }