Skip to content

Commit

Permalink
VIM-674 Don't handle <Tab> in Insert mode in Vim emulation
Browse files Browse the repository at this point in the history
It breaks several IDE actions that provide their own <Tab> handlers
like Emmet or parameters completion in RubyMine and AppCode.
  • Loading branch information
vlasovskikh committed Apr 29, 2014
1 parent 276755a commit f6cb04c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/com/maddyhome/idea/vim/action/VimShortcutKeyAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ private boolean isEnabled(@NotNull AnActionEvent e) {
return isExitInsertMode(keyStroke);
}
if (CommandState.inInsertMode(editor)) {
if (keyCode == VK_ENTER) {
// XXX: <Enter> and <Tab> won't be recorded in macros
if (keyCode == VK_ENTER || keyCode == VK_TAB) {
return false;
}
// Debug watch, Python console, etc.
Expand Down

0 comments on commit f6cb04c

Please sign in to comment.