fix: check keycode 229 for search too

This commit is contained in:
Tienson Qin
2021-12-15 12:09:10 +08:00
parent 6b3102d349
commit cab8bc3eae

View File

@@ -388,7 +388,7 @@
(when @search-timeout
(js/clearTimeout @search-timeout))
(let [value (util/evalue e)
is-composing? (gobj/getValueByKeys e "nativeEvent" "isComposing")]
is-composing? (util/event-is-composing? e)]
(if (and (string/blank? value) (not is-composing?))
(search-handler/clear-search! false)
(let [search-mode (state/get-search-mode)