From db63c191b032c0315d81c1f215c12475a138b8b1 Mon Sep 17 00:00:00 2001
From: Amaury Johnen <amaury.johnen@uclouvain.be>
Date: Mon, 17 Jul 2017 14:13:21 -0400
Subject: [PATCH] add page up and page down shortcut for using pointers in
 presentations with gmsh

---
 Fltk/FlGui.cpp | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/Fltk/FlGui.cpp b/Fltk/FlGui.cpp
index 728e8b2343..2a3d544168 100644
--- a/Fltk/FlGui.cpp
+++ b/Fltk/FlGui.cpp
@@ -947,6 +947,18 @@ int FlGui::testArrowShortcuts()
     drawContext::global()->draw();
     return 1;
   }
+  else if(Fl::test_shortcut(FL_Page_Up)) {
+    gmshPopplerWrapper::setCurrentPageDown();
+    drawContext::global()->draw();
+    drawContext::global()->draw();
+    return 1;
+  }
+  else if(Fl::test_shortcut(FL_Page_Down)) {
+    gmshPopplerWrapper::setCurrentPageUp();
+    drawContext::global()->draw();
+    drawContext::global()->draw();
+    return 1;
+  }
 #endif
   return 0;
 }
-- 
GitLab