From ba0206a4d212542a5e015328ab634ba9138b7f3e Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Mon, 19 Sep 2022 14:31:35 +0900 Subject: [PATCH] disabled `Ctrl-v` scroll --- app/views/components/editor.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/components/editor.tsx b/app/views/components/editor.tsx index 4f082a8..54c8071 100644 --- a/app/views/components/editor.tsx +++ b/app/views/components/editor.tsx @@ -42,7 +42,10 @@ export default (props: { if (previousLine.trim() === "") return null; return /^[ \t]*/.exec(previousLine)?.[0]?.length ?? null; }), - keymap.of([indentWithTab, ...emacsStyleKeymap]), + keymap.of([ + indentWithTab, + ...emacsStyleKeymap.filter(({ key }) => key !== "Ctrl-v"), + ]), minimalSetup, quotLanguage, quotHighlighting,