]> git.mxchange.org Git - flightgear.git/commitdiff
Modified Files:
authorfrohlich <frohlich>
Tue, 5 Jun 2007 17:44:49 +0000 (17:44 +0000)
committerfrohlich <frohlich>
Tue, 5 Jun 2007 17:44:49 +0000 (17:44 +0000)
FGManipulator.cxx: Stuart Buchanan: add tab key translation.

src/Main/FGManipulator.cxx

index 580b82d486a048879e8c7ec6988fa8a0594af36c..644248474e2e6dfc10574bee48f6cf21a753a8be 100644 (file)
@@ -159,7 +159,8 @@ void FGManipulator::handleKey(const osgGA::GUIEventAdapter& ea, int& key,
     case osgGA::GUIEventAdapter::KEY_Escape: key = 0x1b; break;
     case osgGA::GUIEventAdapter::KEY_Return: key = '\n'; break;
     case osgGA::GUIEventAdapter::KEY_BackSpace: key = '\b'; break;
-    case osgGA::GUIEventAdapter::KEY_Delete: key = 0x7f; break;
+    case osgGA::GUIEventAdapter::KEY_Delete:   key = 0x7f; break;
+    case osgGA::GUIEventAdapter::KEY_Tab:      key = '\t'; break;
     case osgGA::GUIEventAdapter::KEY_Left:     key = PU_KEY_LEFT;      break;
     case osgGA::GUIEventAdapter::KEY_Up:       key = PU_KEY_UP;        break;
     case osgGA::GUIEventAdapter::KEY_Right:    key = PU_KEY_RIGHT;     break;