From 2fe0e29661edd73185a86a13cabd055a842d9139 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 7 Mar 2023 18:53:16 +0800 Subject: [PATCH] :iphone: fix https://github.com/siyuan-note/siyuan/issues/7595 --- app/src/mobile/util/keyboardToolbar.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/src/mobile/util/keyboardToolbar.ts b/app/src/mobile/util/keyboardToolbar.ts index 9ae35a9b0..8dd09063b 100644 --- a/app/src/mobile/util/keyboardToolbar.ts +++ b/app/src/mobile/util/keyboardToolbar.ts @@ -3,7 +3,6 @@ import {hasClosestBlock, hasClosestByClassName, hasClosestByMatchTag} from "../. import {moveToDown, moveToUp} from "../../protyle/wysiwyg/move"; import {Constants} from "../../constants"; import {focusByRange, getSelectionPosition} from "../../protyle/util/selection"; -import {removeBlock} from "../../protyle/wysiwyg/remove"; import {hintSlash} from "../../protyle/hint/extend"; let renderKeyboardToolbarTimeout: number; @@ -166,7 +165,6 @@ export const initKeyboardToolbar = () => { - @@ -272,10 +270,6 @@ export const initKeyboardToolbar = () => { moveToDown(protyle, nodeElement, range); focusByRange(range); return; - } else if (type === "remove") { - nodeElement.classList.add("protyle-wysiwyg--select"); - removeBlock(protyle, nodeElement, range); - return; } else if (type === "add") { renderSlashMenu(protyle, toolbarElement); renderKeyboardToolbarUtil();