Browse Source

fix: Hashtag # with Chinese character doesn't trigger search

close #3283
Tienson Qin 3 years ago
parent
commit
453579affd
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/handler/editor.cljs

+ 2 - 1
src/main/frontend/handler/editor.cljs

@@ -2770,7 +2770,8 @@
           shift? (.-shiftKey e)
           code (gobj/getValueByKeys e "event_" "code")]
       (cond
-        (or is-composing? (= key-code 229))
+        (and (or is-composing? (= key-code 229))
+             (not (state/get-editor-show-page-search-hashtag?)))
         nil
 
         (or ctrlKey metaKey)