mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
ecff1bc3b7
commit
d8fb86c94e
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ export const keymap = {
|
||||||
},
|
},
|
||||||
_search(value: string) {
|
_search(value: string) {
|
||||||
keymap.element.querySelectorAll("#keymapList .b3-list-item--hide-action > .b3-list-item__text").forEach(item => {
|
keymap.element.querySelectorAll("#keymapList .b3-list-item--hide-action > .b3-list-item__text").forEach(item => {
|
||||||
if (item.textContent.indexOf(value) > -1 || value === "") {
|
if (item.textContent.toLowerCase().indexOf(value.toLowerCase()) > -1 || value === "") {
|
||||||
item.parentElement.classList.remove("fn__none");
|
item.parentElement.classList.remove("fn__none");
|
||||||
item.parentElement.parentElement.classList.remove("fn__none");
|
item.parentElement.parentElement.classList.remove("fn__none");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue