Просмотр исходного кода

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

close #3283
Tienson Qin 4 лет назад
Родитель
Сommit
453579affd
1 измененных файлов с 2 добавлено и 1 удалено
  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)