added g8, v ( hightlight only )

Some structural changes on VimControls
This commit is contained in:
2016-03-22 02:08:07 +08:00
parent 8769e69f35
commit e52c312af5
8 changed files with 307 additions and 138 deletions
+7 -7
View File
@@ -53,12 +53,6 @@
var _self = this;
var controls = new VimControls( this );
stage.addEventListener(
"KeyDown"
, KeyHandler( this, controls.handler.bind( controls ) )
);
stage.addEventListener( "Focus", function() { _self.__active = true; } );
stage.addEventListener( "Blur", function() { _self.__active = false; } );
@@ -141,11 +135,17 @@
Cycle.perma( "VimCursorBlinkCycle" + element.id, function()
{
_self.select(
( _self.__blink = !_self.__blink )
!_self.__cursor.blink || ( _self.__blink = !_self.__blink )
? _self.__cursor.position
: { start: 0, end: 0 }
);
}, 600 );
var controls = new VimControls( this );
this.stage.addEventListener(
"KeyDown"
, KeyHandler( this, controls.handler.bind( controls ) )
);
};
__readOnly( VimArea.prototype, "content", function() {