1
0
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:
rmaddy 2004-02-14 01:11:07 +00:00
parent 120605e1be
commit 9c8f526228
3 changed files with 21 additions and 4 deletions
docs
src/com/maddyhome/idea/vim

View File

@ -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.

View File

@ -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;
}

View File

@ -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;
}