From 0413e943ae8cc944e39c5dec7f094e4eda0dfb46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Sat, 16 Apr 2016 19:20:14 +0800 Subject: [PATCH] Enter act as j --- botanjs/src/Components/Vim/Controls.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/botanjs/src/Components/Vim/Controls.js b/botanjs/src/Components/Vim/Controls.js index 1173343..4f982d6 100644 --- a/botanjs/src/Components/Vim/Controls.js +++ b/botanjs/src/Components/Vim/Controls.js @@ -415,6 +415,7 @@ case H: this.__cMoveX( -1 ); break; // Left case L: this.__cMoveX( 1 ); break; // Right case K: this.__cMoveY( -1 ); break; // Up + case ENTER: case J: this.__cMoveY( 1 ); break; // Down case CTRL + F: // Page Down @@ -650,6 +651,7 @@ this.__divedCCmd.dispose(); this.__cMovement = false; this.__divedCCmd = null; + return; } if( e.canceled ) return;