mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
This commit is contained in:
parent
53f6030a56
commit
fc3b0fcef4
4 changed files with 57 additions and 5 deletions
|
|
@ -7,7 +7,7 @@
|
||||||
"id": "20200813004551-gm0pbn1",
|
"id": "20200813004551-gm0pbn1",
|
||||||
"title": "快捷键",
|
"title": "快捷键",
|
||||||
"type": "doc",
|
"type": "doc",
|
||||||
"updated": "20231206093707"
|
"updated": "20240112145126"
|
||||||
},
|
},
|
||||||
"Children": [
|
"Children": [
|
||||||
{
|
{
|
||||||
|
|
@ -2977,7 +2977,7 @@
|
||||||
"Properties": {
|
"Properties": {
|
||||||
"colgroup": "||",
|
"colgroup": "||",
|
||||||
"id": "20201227133317-vopotjc",
|
"id": "20201227133317-vopotjc",
|
||||||
"updated": "20231206093707"
|
"updated": "20240112145126"
|
||||||
},
|
},
|
||||||
"Children": [
|
"Children": [
|
||||||
{
|
{
|
||||||
|
|
@ -6816,7 +6816,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Type": "NodeText",
|
"Type": "NodeText",
|
||||||
"Data": " 中配置"
|
"Data": " 中配置"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -6866,6 +6866,51 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Type": "NodeTableRow",
|
||||||
|
"Data": "tr",
|
||||||
|
"Children": [
|
||||||
|
{
|
||||||
|
"Type": "NodeTableCell",
|
||||||
|
"Data": "td",
|
||||||
|
"Children": [
|
||||||
|
{
|
||||||
|
"Type": "NodeText",
|
||||||
|
"Data": "退出聚焦"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Type": "NodeTableCell",
|
||||||
|
"Data": "td",
|
||||||
|
"Children": [
|
||||||
|
{
|
||||||
|
"Type": "NodeText",
|
||||||
|
"Data": "-"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Type": "NodeTableCell",
|
||||||
|
"Data": "td",
|
||||||
|
"Children": [
|
||||||
|
{
|
||||||
|
"Type": "NodeText",
|
||||||
|
"Data": "可前往 "
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Type": "NodeTextMark",
|
||||||
|
"TextMarkType": "kbd",
|
||||||
|
"TextMarkTextContent": "设置- 快捷键"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Type": "NodeText",
|
||||||
|
"Data": " 中配置"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,7 @@ import {getContentByInlineHTML} from "../../protyle/wysiwyg/keydown";
|
||||||
import {searchKeydown} from "./searchKeydown";
|
import {searchKeydown} from "./searchKeydown";
|
||||||
import {openNewWindow} from "../../window/openNewWindow";
|
import {openNewWindow} from "../../window/openNewWindow";
|
||||||
import {historyKeydown} from "../../history/keydown";
|
import {historyKeydown} from "../../history/keydown";
|
||||||
|
import {zoomOut} from "../../menus/protyle";
|
||||||
|
|
||||||
const switchDialogEvent = (app: App, event: MouseEvent) => {
|
const switchDialogEvent = (app: App, event: MouseEvent) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
@ -327,6 +328,11 @@ const editKeydown = (app: App, event: KeyboardEvent) => {
|
||||||
if (target.tagName !== "TABLE" && ["INPUT", "TEXTAREA"].includes(target.tagName)) {
|
if (target.tagName !== "TABLE" && ["INPUT", "TEXTAREA"].includes(target.tagName)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (matchHotKey(window.siyuan.config.keymap.editor.general.exitFocus.custom, event)) {
|
||||||
|
event.preventDefault();
|
||||||
|
zoomOut({protyle, id: protyle.block.rootID, focusId: protyle.block.id});
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (matchHotKey(window.siyuan.config.keymap.editor.general.backlinks.custom, event)) {
|
if (matchHotKey(window.siyuan.config.keymap.editor.general.backlinks.custom, event)) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
if (range) {
|
if (range) {
|
||||||
|
|
|
||||||
|
|
@ -358,6 +358,7 @@ export abstract class Constants {
|
||||||
vLayout: {default: "", custom: ""},
|
vLayout: {default: "", custom: ""},
|
||||||
refPopover: {default: "", custom: ""},
|
refPopover: {default: "", custom: ""},
|
||||||
copyText: {default: "", custom: ""},
|
copyText: {default: "", custom: ""},
|
||||||
|
exitFocus: {default: "", custom: ""},
|
||||||
expand: {default: "⌘↓", custom: "⌘↓"},
|
expand: {default: "⌘↓", custom: "⌘↓"},
|
||||||
collapse: {default: "⌘↑", custom: "⌘↑"},
|
collapse: {default: "⌘↑", custom: "⌘↑"},
|
||||||
insertBottom: {default: "⌥⌘.", custom: "⌥⌘."},
|
insertBottom: {default: "⌥⌘.", custom: "⌥⌘."},
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ import {Menu} from "../../plugin/Menu";
|
||||||
import {getNoContainerElement} from "../wysiwyg/getBlock";
|
import {getNoContainerElement} from "../wysiwyg/getBlock";
|
||||||
import {openTitleMenu} from "../header/openTitleMenu";
|
import {openTitleMenu} from "../header/openTitleMenu";
|
||||||
import {emitOpenMenu} from "../../plugin/EventBus";
|
import {emitOpenMenu} from "../../plugin/EventBus";
|
||||||
import {isInAndroid, isMac} from "../util/compatibility";
|
import {isInAndroid, isMac, updateHotkeyTip} from "../util/compatibility";
|
||||||
import {resize} from "../util/resize";
|
import {resize} from "../util/resize";
|
||||||
|
|
||||||
export class Breadcrumb {
|
export class Breadcrumb {
|
||||||
|
|
@ -44,7 +44,7 @@ export class Breadcrumb {
|
||||||
`<button class="protyle-breadcrumb__icon" data-type="mobile-menu">${window.siyuan.languages.breadcrumb}</button>` :
|
`<button class="protyle-breadcrumb__icon" data-type="mobile-menu">${window.siyuan.languages.breadcrumb}</button>` :
|
||||||
'<div class="protyle-breadcrumb__bar"></div>'}
|
'<div class="protyle-breadcrumb__bar"></div>'}
|
||||||
<span class="protyle-breadcrumb__space"></span>
|
<span class="protyle-breadcrumb__space"></span>
|
||||||
<button class="protyle-breadcrumb__icon fn__none" data-type="exit-focus">${window.siyuan.languages.exitFocus}</button>
|
<button class="protyle-breadcrumb__icon fn__none ariaLabel" aria-label="${updateHotkeyTip(window.siyuan.config.keymap.editor.general.exitFocus.custom)}" data-type="exit-focus">${window.siyuan.languages.exitFocus}</button>
|
||||||
<button class="block__icon block__icon--show fn__flex-center ariaLabel${window.siyuan.config.readonly ? " fn__none" : ""}" aria-label="${window.siyuan.languages.lockEdit}" data-type="readonly"><svg><use xlink:href="#iconUnlock"></use></svg></button>
|
<button class="block__icon block__icon--show fn__flex-center ariaLabel${window.siyuan.config.readonly ? " fn__none" : ""}" aria-label="${window.siyuan.languages.lockEdit}" data-type="readonly"><svg><use xlink:href="#iconUnlock"></use></svg></button>
|
||||||
<span class="fn__space${window.siyuan.config.readonly ? " fn__none" : ""}"></span>
|
<span class="fn__space${window.siyuan.config.readonly ? " fn__none" : ""}"></span>
|
||||||
<button class="block__icon block__icon--show fn__flex-center ariaLabel" data-type="doc" aria-label="${isMac() ? window.siyuan.languages.gutterTip2 : window.siyuan.languages.gutterTip2.replace("⇧", "Shift+")}"><svg><use xlink:href="#iconFile"></use></svg></button>
|
<button class="block__icon block__icon--show fn__flex-center ariaLabel" data-type="doc" aria-label="${isMac() ? window.siyuan.languages.gutterTip2 : window.siyuan.languages.gutterTip2.replace("⇧", "Shift+")}"><svg><use xlink:href="#iconFile"></use></svg></button>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue