diff Framework/Viewport/WidgetViewport.cpp @ 327:8716176ff7f0 am-2

added support for arrow keys
author am@osimis.io
date Tue, 16 Oct 2018 15:25:21 +0200
parents 3a4ca166fafa
children 7a364e44fbb4
line wrap: on
line diff
--- a/Framework/Viewport/WidgetViewport.cpp	Tue Oct 16 12:57:38 2018 +0200
+++ b/Framework/Viewport/WidgetViewport.cpp	Tue Oct 16 15:25:21 2018 +0200
@@ -235,13 +235,14 @@
   }
 
 
-  void WidgetViewport::KeyPressed(char key,
+  void WidgetViewport::KeyPressed(KeyboardKeys key,
+                                  char keyChar,
                                   KeyboardModifiers modifiers)
   {
     if (centralWidget_.get() != NULL &&
         mouseTracker_.get() == NULL)
     {
-      centralWidget_->KeyPressed(key, modifiers);
+      centralWidget_->KeyPressed(key, keyChar, modifiers);
     }
   }