mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-07-27 02:59:01 +02:00
Need to fix focus problem after ex window goes away
This commit is contained in:
parent
120605e1be
commit
9c8f526228
@ -1,5 +1,6 @@
|
||||
Bugs to fix:
|
||||
|
||||
- Fix focus problem with Ex window goes away.
|
||||
- can't delete empty lines at end of file.
|
||||
- Show message after shifting lines with :< or :>
|
||||
- Replace mode - fix cursor. Can't figure out how to keep block cursor.
|
||||
|
@ -143,16 +143,27 @@ public class ProcessGroup extends AbstractActionGroup
|
||||
}
|
||||
finally
|
||||
{
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
public void run()
|
||||
{
|
||||
editor.getContentComponent().requestFocus();
|
||||
}
|
||||
});
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean cancelExEntry(Editor editor, DataContext context)
|
||||
public boolean cancelExEntry(final Editor editor, DataContext context)
|
||||
{
|
||||
CommandState.getInstance().popState();
|
||||
ExEntryPanel panel = ExEntryPanel.getInstance();
|
||||
panel.deactivate(false);
|
||||
editor.getContentComponent().requestFocus();
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
public void run()
|
||||
{
|
||||
editor.getContentComponent().requestFocus();
|
||||
}
|
||||
});
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -194,8 +194,13 @@ public class ExEntryPanel extends JPanel
|
||||
if (changeFocus)
|
||||
{
|
||||
logger.debug("parent.requestFocus()");
|
||||
//parent.requestFocus();
|
||||
last.requestFocus();
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
public void run()
|
||||
{
|
||||
//parent.requestFocus();
|
||||
last.requestFocus();
|
||||
}
|
||||
});
|
||||
}
|
||||
parent = null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user