enhance(pdf): support `shift + enter` to pick the previous searching results item

pull/10004/head
charlie 2023-08-07 17:40:14 +08:00 committed by Tienson Qin
parent a160151ceb
commit 62eb86f0c8
1 changed files with 2 additions and 2 deletions

View File

@ -218,8 +218,8 @@
:on-key-up (fn [^js e]
(case (.-which e)
13 ;; enter
(do
(do-find! :again)
(let [shift? (.-shiftKey e)]
(do-find! {:type :again :prev? shift?})
(set-entered-active? true))
27 ;; esc