mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-17 04:28:07 +01:00
This commit is contained in:
parent
adf424f7c4
commit
c9e30e31af
1 changed files with 2 additions and 1 deletions
|
|
@ -687,7 +687,8 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
|
||||
const selectText = range.toString();
|
||||
// 删除,不可使用 !isCtrl(event),否则软删除回导致 https://github.com/siyuan-note/siyuan/issues/5607
|
||||
if (!event.altKey && !event.shiftKey && (event.key === "Backspace" || event.key === "Delete")) {
|
||||
// 不可使用 !event.shiftKey,否则 https://ld246.com/article/1666434796806
|
||||
if (!event.altKey && (event.key === "Backspace" || event.key === "Delete")) {
|
||||
if (protyle.wysiwyg.element.querySelector(".protyle-wysiwyg--select")) {
|
||||
removeBlock(protyle, nodeElement, range);
|
||||
event.stopPropagation();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue