Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/sidebar/components/bar.search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,14 @@ function onKD(e: KeyboardEvent): void {
}
}

function onInput(e: Event) {
function onInput(e: InputEvent) {
// Ignore text entered during composition, before the real text is committed.
// For example, when using an Input Method Editor for typing Japanese, you enter temporary
// latin characters that you convert into the appropriate kanas or kanjis, and then validate.
// Also, on some systems, the usual dead keys work like that.
// https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/isComposing
if (e.isComposing) return

const rawQuery = (e.target as HTMLInputElement | null)?.value ?? ''

if (Settings.state.searchInputTimeout > 0) {
Expand Down