forked from Botanical/BotanJS
Migrate old externs 9/x
This commit is contained in:
@@ -5,15 +5,18 @@
|
||||
var debug = __import( "System.Debug" );
|
||||
/** @type {typeof System.utils.EventKey} */
|
||||
var EventKey = __import( "System.utils.EventKey" );
|
||||
/** @type {Components.Vim.ActionEvent} */
|
||||
var ActionEvent = __import( "Components.Vim.ActionEvent" );
|
||||
/** @type {typeof Components.Vim.ControlActionEvent} */
|
||||
var ControlActionEvent = __import( "Components.Vim.ControlActionEvent" );
|
||||
|
||||
var Mesg = __import( "Components.Vim.Message" );
|
||||
|
||||
// Recording Sessions
|
||||
var Sessions = [];
|
||||
|
||||
/** @type {Components.Vim.IAction} */
|
||||
/**
|
||||
* @constructor
|
||||
* @implements {Components.Vim.IAction}
|
||||
*/
|
||||
var VA_REC = function( Cursor )
|
||||
{
|
||||
/** @type {Components.Vim.Cursor} */
|
||||
@@ -22,6 +25,8 @@
|
||||
Cursor.suppressEvent();
|
||||
};
|
||||
|
||||
VA_REC.prototype.allowMovement = false;
|
||||
|
||||
VA_REC.prototype.dispose = function()
|
||||
{
|
||||
this.__cursor.unsuppressEvent();
|
||||
@@ -84,7 +89,7 @@
|
||||
session.__event = new EventKey(
|
||||
"KeyDown", function( e2 )
|
||||
{
|
||||
var evt = new ActionEvent( sender, e2 );
|
||||
var evt = new ControlActionEvent( sender, e2 );
|
||||
if( [ "Control", "Alt", "Shift" ].indexOf( e2.key ) != -1 ) return;
|
||||
|
||||
var now = Date.now();
|
||||
|
||||
Reference in New Issue
Block a user