mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +01:00
This commit is contained in:
parent
98768888b1
commit
6b83c5d081
1 changed files with 5 additions and 7 deletions
|
|
@ -56,11 +56,9 @@ export class Gutter {
|
||||||
private gutterTip: string;
|
private gutterTip: string;
|
||||||
|
|
||||||
constructor(protyle: IProtyle) {
|
constructor(protyle: IProtyle) {
|
||||||
if (isMac()) {
|
this.gutterTip = window.siyuan.languages.gutterTip.replace("⌥→", updateHotkeyTip(window.siyuan.config.keymap.general.enter.custom))
|
||||||
this.gutterTip = window.siyuan.languages.gutterTip;
|
.replace("⌘↑", updateHotkeyTip(window.siyuan.config.keymap.editor.general.collapse.custom))
|
||||||
} else {
|
.replace("⌥⌘A", updateHotkeyTip(window.siyuan.config.keymap.editor.general.attr.custom));
|
||||||
this.gutterTip = window.siyuan.languages.gutterTip.replace(/⌘/g, "Ctrl+").replace(/⌥/g, "Alt+").replace(/⇧/g, "Shift+").replace(/⌃/g, "Ctrl+");
|
|
||||||
}
|
|
||||||
this.element = document.createElement("div");
|
this.element = document.createElement("div");
|
||||||
this.element.className = "protyle-gutters";
|
this.element.className = "protyle-gutters";
|
||||||
this.element.addEventListener("dragstart", (event: DragEvent & { target: HTMLElement }) => {
|
this.element.addEventListener("dragstart", (event: DragEvent & { target: HTMLElement }) => {
|
||||||
|
|
@ -825,7 +823,7 @@ export class Gutter {
|
||||||
selectsElement.forEach(item => {
|
selectsElement.forEach(item => {
|
||||||
srcIDs.push(item.getAttribute("data-node-id"));
|
srcIDs.push(item.getAttribute("data-node-id"));
|
||||||
srcs.push({
|
srcs.push({
|
||||||
id:item.getAttribute("data-node-id"),
|
id: item.getAttribute("data-node-id"),
|
||||||
isDetached: false,
|
isDetached: false,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
@ -1296,7 +1294,7 @@ export class Gutter {
|
||||||
transaction(protyle, [{
|
transaction(protyle, [{
|
||||||
action: "insertAttrViewBlock",
|
action: "insertAttrViewBlock",
|
||||||
avID,
|
avID,
|
||||||
srcs:[{
|
srcs: [{
|
||||||
id,
|
id,
|
||||||
isDetached: false
|
isDetached: false
|
||||||
}],
|
}],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue