mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
This commit is contained in:
parent
6cba470b69
commit
32d953219a
1 changed files with 2 additions and 2 deletions
|
|
@ -108,7 +108,7 @@ export const keymap = {
|
||||||
},
|
},
|
||||||
_setkeymap() {
|
_setkeymap() {
|
||||||
const data: IKeymap = Object.assign({}, Constants.SIYUAN_KEYMAP);
|
const data: IKeymap = Object.assign({}, Constants.SIYUAN_KEYMAP);
|
||||||
keymap.element.querySelectorAll("input").forEach((item) => {
|
keymap.element.querySelectorAll("ul input").forEach((item) => {
|
||||||
const keys = item.getAttribute("data-key").split(Constants.ZWSP);
|
const keys = item.getAttribute("data-key").split(Constants.ZWSP);
|
||||||
if (keys[0] === "general") {
|
if (keys[0] === "general") {
|
||||||
data[keys[0]][keys[1]].custom = item.getAttribute("data-value");
|
data[keys[0]][keys[1]].custom = item.getAttribute("data-value");
|
||||||
|
|
@ -268,7 +268,7 @@ export const keymap = {
|
||||||
showMessage(tip + "] " + window.siyuan.languages.invalid);
|
showMessage(tip + "] " + window.siyuan.languages.invalid);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const hasConflict = Array.from(keymap.element.querySelectorAll("input")).find(inputItem => {
|
const hasConflict = Array.from(keymap.element.querySelectorAll("ul input")).find(inputItem => {
|
||||||
if (!inputItem.isSameNode(this) && inputItem.getAttribute("data-value") === keymapStr) {
|
if (!inputItem.isSameNode(this) && inputItem.getAttribute("data-value") === keymapStr) {
|
||||||
const inputValueList = inputItem.getAttribute("data-key").split(Constants.ZWSP);
|
const inputValueList = inputItem.getAttribute("data-key").split(Constants.ZWSP);
|
||||||
if (inputValueList[1] === "list") {
|
if (inputValueList[1] === "list") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue