tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
allow shortcuts on mobile width devices
awarm.space
5 months ago
6a12ec7b
7d422b8e
+1
-2
1 changed file
expand all
collapse all
unified
split
components
SelectionManager.tsx
+1
-2
components/SelectionManager.tsx
···
36
36
let isMobile = useIsMobile();
37
37
useEffect(() => {
38
38
if (!entity_set.permissions.write || !rep) return;
39
39
-
if (isMobile) return;
40
39
const getSortedSelectionBound = getSortedSelection.bind(null, rep);
41
40
let shortcuts: Shortcut[] = [
42
41
{
···
555
554
removeListener();
556
555
window.removeEventListener("keydown", listener);
557
556
};
558
558
-
}, [moreThanOneSelected, rep, entity_set.permissions.write, isMobile]);
557
557
+
}, [moreThanOneSelected, rep, entity_set.permissions.write]);
559
558
560
559
let [mouseDown, setMouseDown] = useState(false);
561
560
let initialContentEditableParent = useRef<null | Node>(null);