Merge pull request #19101 from overleaf/dp-presentation-additional-keys

Add PageUp/PageDown/Backspace options for presentation page navigation

GitOrigin-RevId: 59b8c3b22ff205c8fe1009c120358c913db3cbe5
This commit is contained in:
David 2024-06-25 09:51:26 +01:00 committed by Copybot
parent b2e3002992
commit 62c432b997

View file

@ -51,11 +51,14 @@ export default function usePresentationMode(
switch (event.key) {
case 'ArrowLeft':
case 'ArrowUp':
case 'PageUp':
case 'Backspace':
previousPage()
break
case 'ArrowRight':
case 'ArrowDown':
case 'PageDown':
nextPage()
break