Skip to content

Commit

Permalink
Disable taking over arrow keys and Home/End
Browse files Browse the repository at this point in the history
  • Loading branch information
chylex committed Feb 16, 2021
1 parent b824d0d commit bcf9f53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/com/maddyhome/idea/vim/action/VimShortcutKeyAction.kt
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ class VimShortcutKeyAction : AnAction(), DumbAware/*, LightEditCompatible*/ {
if (keyCode == KeyEvent.VK_TAB && editor.isTemplateActive()) return false

if ((keyCode == KeyEvent.VK_TAB || keyCode == KeyEvent.VK_ENTER) && editor.appCodeTemplateCaptured()) return false

if (keyCode == KeyEvent.VK_LEFT || keyCode == KeyEvent.VK_RIGHT) return false
if (keyCode == KeyEvent.VK_UP || keyCode == KeyEvent.VK_DOWN) return false
if (keyCode == KeyEvent.VK_HOME || keyCode == KeyEvent.VK_END) return false

if (editor.inInsertMode) { // XXX: <Tab> won't be recorded in macros
if (keyCode == KeyEvent.VK_TAB) {
Expand Down

0 comments on commit bcf9f53

Please sign in to comment.