Left and right key for page navigation in presentation mode

As the presentation remotes use the left and right keys for page/slide
navigation, map them to previous and next page in presentation
mode. It still preserves the Shift+Left/Right combination in dual page
view. It only masks out the relative scrolling which is not needed in
presentation mode, so thats okay.
presentation
Stefan Wallentowitz 7 years ago
parent ed99aa0069
commit 9fc256d43a
  1. 18
      src/gui/XournalView.cpp

@ -318,7 +318,14 @@ bool XournalView::onKeyPressEvent(GdkEventKey* event)
}
else
{
layout->scrollRelative(-scrollKeySize, 0);
if (control->getSettings()->isPresentationMode())
{
control->getScrollHandler()->goToPreviousPage();
}
else
{
layout->scrollRelative(-scrollKeySize, 0);
}
}
return true;
}
@ -331,7 +338,14 @@ bool XournalView::onKeyPressEvent(GdkEventKey* event)
}
else
{
layout->scrollRelative(scrollKeySize, 0);
if (control->getSettings()->isPresentationMode())
{
control->getScrollHandler()->goToNextPage();
}
else
{
layout->scrollRelative(scrollKeySize, 0);
}
}
return true;
}

Loading…
Cancel
Save