From 2e175b33fdbe1524f59d92c735432fc444c46441 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: Mon, 4 Apr 2016 03:01:25 +0800 Subject: [PATCH] do not blur focus --- botanjs/src/Astro/Blog/AstroEdit/_this.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/botanjs/src/Astro/Blog/AstroEdit/_this.js b/botanjs/src/Astro/Blog/AstroEdit/_this.js index 34a3da9..e042b3c 100644 --- a/botanjs/src/Astro/Blog/AstroEdit/_this.js +++ b/botanjs/src/Astro/Blog/AstroEdit/_this.js @@ -120,9 +120,7 @@ var node = document.activeElement; if( node.nodeName == "TEXTAREA" ) { - new VimArea( node ); - node.blur(); - node.focus(); + new VimArea( node, true ); } } };