commit 2e175b33fdbe1524f59d92c735432fc444c46441
| author | 斟酌 鵬兄 <tgckpg@gmail.com> |
| date | 2016-04-03T19:01:25Z |
| subject | do not blur focus |
commit 2e175b33fdbe1524f59d92c735432fc444c46441
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date: 2016-04-03T19:01:25Z
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 );
}
}
};