Migrate old externs 9/x

This commit is contained in:
2026-06-17 20:48:46 +08:00
parent 00fe7ca3bb
commit 01d4eb09a6
66 changed files with 708 additions and 420 deletions
+9 -4
View File
@@ -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();