From 1e8c7877f29992b08729b3de62e63edd02687d05 Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Fri, 8 Jul 2022 19:09:14 +0900 Subject: [PATCH] For vim mode. --- main.ts | 3 +++ manifest.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/main.ts b/main.ts index d0b7adf..cccc894 100644 --- a/main.ts +++ b/main.ts @@ -104,6 +104,9 @@ export default class NinjaCursorPlugin extends Plugin { this.registerDomEvent(window, "keydown", (ev) => { moveCursor(); }); + this.registerDomEvent(window, "keyup", (ev) => { + moveCursor(); + }); this.registerDomEvent(window, "mousedown", () => { moveCursor(); }); diff --git a/manifest.json b/manifest.json index aa67840..49c4f3c 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "ninja-cursor", "name": "Ninja Cursor", - "version": "0.0.2", + "version": "0.0.3", "minAppVersion": "0.12.0", "description": "The plugin which enhance cursor visiblity.", "author": "vorotamoroz", diff --git a/package-lock.json b/package-lock.json index 472f71e..d0b355c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ninja-cursor", - "version": "0.0.2", + "version": "0.0.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ninja-cursor", - "version": "0.0.2", + "version": "0.0.3", "license": "MIT", "devDependencies": { "@types/node": "^16.11.6", diff --git a/package.json b/package.json index eca1dcb..f71d003 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ninja-cursor", - "version": "0.0.2", + "version": "0.0.3", "description": "The plugin which enhance cursor visiblity.", "main": "main.js", "scripts": {