From 29a16c4043208004c9657bb48e2b20b020a3bc92 Mon Sep 17 00:00:00 2001 From: harveyshao Date: Tue, 15 Jun 2021 06:53:20 +0800 Subject: [PATCH] opt some --- plugin/local/code/vimer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/local/code/vimer.js b/plugin/local/code/vimer.js index 953db26a..9cfa1a77 100644 --- a/plugin/local/code/vimer.js +++ b/plugin/local/code/vimer.js @@ -283,7 +283,8 @@ Volcanos("onkeymap", {help: "键盘交互", list: ["command", "normal", "insert" left: line.offsetLeft, top: line.offsetTop-can.current.offset()-2, height: line.offsetHeight, width: line.offsetWidth }}) - can.ui.current.focus(), can.ui.current.setSelectionRange(event.offsetX/13, event.offsetX/13) + // can.ui.current.focus() + can.ui.current.setSelectionRange(event.offsetX/13, event.offsetX/13) can.page.Modify(can, can.ui.command, {className: "command "+can.mode}) }, insertLine: function(can, value, before) {