@gpichot/spectacle-deck 1.12.0 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +7 -9
- package/index.mjs +7 -9
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -1619,23 +1619,21 @@ var import_spectacle6 = require("spectacle");
|
|
|
1619
1619
|
function RemoteControllerShortcut() {
|
|
1620
1620
|
const {
|
|
1621
1621
|
skipTo,
|
|
1622
|
+
stepForward,
|
|
1623
|
+
stepBackward,
|
|
1622
1624
|
activeView: { slideIndex },
|
|
1623
1625
|
slideCount
|
|
1624
1626
|
} = (0, import_react9.useContext)(import_spectacle6.DeckContext);
|
|
1625
1627
|
(0, import_spectacle6.useMousetrap)(
|
|
1626
1628
|
{
|
|
1627
|
-
pagedown: () => {
|
|
1628
|
-
document.dispatchEvent(
|
|
1629
|
-
new KeyboardEvent("keydown", { key: "ArrowRight", bubbles: true })
|
|
1630
|
-
);
|
|
1631
|
-
},
|
|
1632
1629
|
pageup: () => {
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1630
|
+
stepForward();
|
|
1631
|
+
},
|
|
1632
|
+
pagedown: () => {
|
|
1633
|
+
stepBackward();
|
|
1636
1634
|
}
|
|
1637
1635
|
},
|
|
1638
|
-
[
|
|
1636
|
+
[stepForward, stepBackward]
|
|
1639
1637
|
);
|
|
1640
1638
|
(0, import_react9.useEffect)(() => {
|
|
1641
1639
|
function handleKeyDown(e) {
|
package/index.mjs
CHANGED
|
@@ -1560,23 +1560,21 @@ import { DeckContext as DeckContext2, useMousetrap } from "spectacle";
|
|
|
1560
1560
|
function RemoteControllerShortcut() {
|
|
1561
1561
|
const {
|
|
1562
1562
|
skipTo,
|
|
1563
|
+
stepForward,
|
|
1564
|
+
stepBackward,
|
|
1563
1565
|
activeView: { slideIndex },
|
|
1564
1566
|
slideCount
|
|
1565
1567
|
} = useContext2(DeckContext2);
|
|
1566
1568
|
useMousetrap(
|
|
1567
1569
|
{
|
|
1568
|
-
pagedown: () => {
|
|
1569
|
-
document.dispatchEvent(
|
|
1570
|
-
new KeyboardEvent("keydown", { key: "ArrowRight", bubbles: true })
|
|
1571
|
-
);
|
|
1572
|
-
},
|
|
1573
1570
|
pageup: () => {
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1571
|
+
stepForward();
|
|
1572
|
+
},
|
|
1573
|
+
pagedown: () => {
|
|
1574
|
+
stepBackward();
|
|
1577
1575
|
}
|
|
1578
1576
|
},
|
|
1579
|
-
[
|
|
1577
|
+
[stepForward, stepBackward]
|
|
1580
1578
|
);
|
|
1581
1579
|
useEffect(() => {
|
|
1582
1580
|
function handleKeyDown(e) {
|