Explorar el Código

fix: remove buggy code

Tienson Qin hace 8 meses
padre
commit
cee2f4d030
Se han modificado 1 ficheros con 0 adiciones y 9 borrados
  1. 0 9
      src/main/frontend/handler/editor.cljs

+ 0 - 9
src/main/frontend/handler/editor.cljs

@@ -2889,15 +2889,6 @@
         (or ctrlKey metaKey)
         (or ctrlKey metaKey)
         nil
         nil
 
 
-        ;; FIXME: On mobile, a backspace click to call keydown-backspace-handler
-        ;; does not work if cursor is at the beginning of a block, hence the block
-        ;; can't be deleted. Need to figure out why and find a better solution.
-        (and (mobile-util/native-platform?)
-             (= key "Backspace")
-             (zero? pos)
-             (string/blank? (.toString (js/window.getSelection))))
-        (keydown-backspace-handler false e)
-
         (and (= key "#")
         (and (= key "#")
              (> pos 0)
              (> pos 0)
              (= "#" (util/nth-safe value (dec pos))))
              (= "#" (util/nth-safe value (dec pos))))