[Orxonox-commit 3340] r8028 - code/branches/usability/data/gui/scripts

landauf at orxonox.net landauf at orxonox.net
Sun Mar 6 01:19:47 CET 2011


Author: landauf
Date: 2011-03-06 01:19:46 +0100 (Sun, 06 Mar 2011)
New Revision: 8028

Modified:
   code/branches/usability/data/gui/scripts/GUISheet.lua
Log:
numpad enter now also works for keyboard menu navigation

Modified: code/branches/usability/data/gui/scripts/GUISheet.lua
===================================================================
--- code/branches/usability/data/gui/scripts/GUISheet.lua	2011-03-06 00:16:56 UTC (rev 8027)
+++ code/branches/usability/data/gui/scripts/GUISheet.lua	2011-03-06 00:19:46 UTC (rev 8028)
@@ -94,7 +94,7 @@
             self:moveSelectionColumn(1)
         elseif code == "203" then -- key left
             self:moveSelectionColumn(-1)
-        elseif code == "28"  then -- key enter
+        elseif code == "28" or code == "156"  then -- key enter or key numpad enter
             self:pressSelectedButton()
         end
     end




More information about the Orxonox-commit mailing list