|
@@ -42,10 +42,14 @@
|
|
|
(println "iOS container path: " path))
|
|
(println "iOS container path: " path))
|
|
|
|
|
|
|
|
;; Keyboard watcher
|
|
;; Keyboard watcher
|
|
|
- (.addListener Keyboard "keyboardWillShow"
|
|
|
|
|
- #(state/pub-event! [:mobile/keyboard-will-show]))
|
|
|
|
|
- ;; (.addListener Keyboard "keyboardDidShow"
|
|
|
|
|
- ;; #(state/pub-event! [:mobile/keyboard-did-show]))
|
|
|
|
|
|
|
+ ;; (.addListener Keyboard "keyboardWillShow"
|
|
|
|
|
+ ;; #(state/pub-event! [:mobile/keyboard-will-show]))
|
|
|
|
|
+ (.addListener Keyboard "keyboardDidShow"
|
|
|
|
|
+ #(state/pub-event! [:mobile/keyboard-did-show])))
|
|
|
|
|
+
|
|
|
|
|
+ (when (mobile-util/is-native-platform?)
|
|
|
|
|
+ (.addEventListener js/window "statusTap"
|
|
|
|
|
+ #(util/scroll-to-top true))
|
|
|
|
|
|
|
|
(.addListener App "appStateChange"
|
|
(.addListener App "appStateChange"
|
|
|
(fn [^js state]
|
|
(fn [^js state]
|
|
@@ -54,8 +58,4 @@
|
|
|
(if is-active?
|
|
(if is-active?
|
|
|
(p/do! (nfs-handler/refresh! repo repo/refresh-cb)
|
|
(p/do! (nfs-handler/refresh! repo repo/refresh-cb)
|
|
|
(notification/show! "Notes updated!" :success true))
|
|
(notification/show! "Notes updated!" :success true))
|
|
|
- (editor-handler/save-current-block!)))))))
|
|
|
|
|
-
|
|
|
|
|
- (when (mobile-util/is-native-platform?)
|
|
|
|
|
- (.addEventListener js/window "statusTap"
|
|
|
|
|
- #(util/scroll-to-top true))))
|
|
|
|
|
|
|
+ (editor-handler/save-current-block!))))))))
|