From bcf9f53a408920eb9520fb51045d67cbd527bc3e Mon Sep 17 00:00:00 2001 From: chylex Date: Mon, 15 Feb 2021 22:36:45 +0100 Subject: [PATCH] Disable taking over arrow keys and Home/End --- src/com/maddyhome/idea/vim/action/VimShortcutKeyAction.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/maddyhome/idea/vim/action/VimShortcutKeyAction.kt b/src/com/maddyhome/idea/vim/action/VimShortcutKeyAction.kt index 1177ebb63d..5bb9736130 100644 --- a/src/com/maddyhome/idea/vim/action/VimShortcutKeyAction.kt +++ b/src/com/maddyhome/idea/vim/action/VimShortcutKeyAction.kt @@ -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: won't be recorded in macros if (keyCode == KeyEvent.VK_TAB) {