mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
This commit is contained in:
@@ -9,10 +9,12 @@ export const mobileKeydown = (app: App, event: KeyboardEvent) => {
|
||||
if (!event.key || filterHotkey(event, app)) {
|
||||
return;
|
||||
}
|
||||
const protyle = getCurrentEditor().protyle;
|
||||
const matchGeneral = Object.keys(window.siyuan.config.keymap.general).find((key) => {
|
||||
if (matchHotKey(window.siyuan.config.keymap.general[key].custom, event)) {
|
||||
execByCommand({command: key, app, protyle, previousRange: protyle.toolbar.range});
|
||||
const protyle = getCurrentEditor()?.protyle;
|
||||
if (protyle) {
|
||||
execByCommand({command: key, app, protyle, previousRange: protyle.toolbar.range});
|
||||
}
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -78,7 +78,7 @@ export const handleTouchEnd = (event: TouchEvent) => {
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof yDiff === "undefined" && window.siyuan.mobile.editor.protyle.options.render.gutter) {
|
||||
if (typeof yDiff === "undefined" && window.siyuan.mobile.editor?.protyle.options.render.gutter) {
|
||||
const nodeElement = hasClosestBlock(target);
|
||||
if (nodeElement) {
|
||||
if (nodeElement && (nodeElement.classList.contains("list") || nodeElement.classList.contains("li"))) {
|
||||
|
||||
Reference in New Issue
Block a user