mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-28 09:54:07 +01:00
This commit is contained in:
parent
8aa4dac91f
commit
3f5dc6432f
2 changed files with 5 additions and 4 deletions
|
|
@ -46,7 +46,7 @@ export const toolbarSearchEvent = () => {
|
|||
const initToolbarSearch = () => {
|
||||
const inputElement = document.getElementById("toolbarSearch") as HTMLInputElement;
|
||||
inputElement.focus();
|
||||
inputElement.value = window.siyuan.storage[Constants.LOCAL_SEARCHEKEY];
|
||||
inputElement.value = window.siyuan.storage[Constants.LOCAL_SEARCHEKEY] || "";
|
||||
inputElement.addEventListener("compositionend", (event: InputEvent) => {
|
||||
if (event && event.isComposing) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue