Skip to content

Commit

Permalink
Activate INS mode when invoking file structure action
Browse files Browse the repository at this point in the history
  • Loading branch information
amibiz committed Jul 29, 2020
1 parent 332c756 commit 54fde79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/github/amibiz/ergokeys/ErgoKeysPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import com.intellij.find.actions.FindInPathAction;
import com.intellij.ide.actions.SearchEverywhereAction;
import com.intellij.ide.actions.ViewStructureAction;
import com.intellij.ide.actions.runAnything.RunAnythingAction;
import com.intellij.ide.util.PropertiesComponent;
import com.intellij.openapi.Disposable;
Expand Down Expand Up @@ -149,7 +150,8 @@ public void beforeActionPerformed(@NotNull AnAction action, @NotNull DataContext
if (action.getClass().equals(SearchEverywhereAction.class) ||
action.getClass().equals(RunAnythingAction.class) ||
action.getClass().equals(IncrementalFindAction.class) ||
action.getClass().equals(FindInPathAction.class)) {
action.getClass().equals(FindInPathAction.class) ||
action.getClass().equals(ViewStructureAction.class)) {
final Editor editor = dataContext.getData(CommonDataKeys.EDITOR);
activateInsertMode(editor);
}
Expand Down

0 comments on commit 54fde79

Please sign in to comment.