Explorar el Código

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

close #3283
Tienson Qin hace 4 años
padre
commit
453579affd
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/main/frontend/handler/editor.cljs

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

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