mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-65927 Switcher: on closing all editor windows in switcher arrow keys do not move the selection
This commit is contained in:
@@ -463,6 +463,15 @@ public class Switcher extends AnAction implements DumbAware {
|
||||
((DefaultListModel)jList.getModel()).removeElementAt(selectedIndex);
|
||||
this.remove(jList);
|
||||
this.remove(separator);
|
||||
final Dimension size = toolWindows.getSize();
|
||||
myPopup.setSize(new Dimension(size.width, myPopup.getSize().height));
|
||||
final IdeFocusManager focusManager = IdeFocusManager.getInstance(project);
|
||||
focusManager.doWhenFocusSettlesDown(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
focusManager.requestFocus(SwitcherPanel.this, true);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
goForward();
|
||||
((DefaultListModel)jList.getModel()).removeElementAt(selectedIndex);
|
||||
|
||||
Reference in New Issue
Block a user