Changed the key binding for opening and editor to edit presentation to 'E' and to trigger update the presentation by pressing 'e'

This commit is contained in:
Robert Osfield
2017-11-02 16:39:32 +00:00
parent 281aae8eea
commit a07105d6c5

View File

@@ -1231,7 +1231,22 @@ bool SlideEventHandler::handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIAction
return true;
}
else if (ea.getKey()=='U')
return false;
}
case(osgGA::GUIEventAdapter::KEYUP):
{
if (ea.getKey()=='h')
{
_hold = false;
return true;
}
else if (ea.getKey()=='e')
{
// reload presentation to reflect changes from editor
setRequestReload(true);
return true;
}
else if (ea.getKey()=='E')
{
char* editor = getenv("P3D_EDITOR");
if (!editor) editor = getenv("EDITOR");
@@ -1252,20 +1267,6 @@ bool SlideEventHandler::handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIAction
return false;
}
case(osgGA::GUIEventAdapter::KEYUP):
{
if (ea.getKey()=='h')
{
_hold = false;
return true;
}
else if (ea.getKey()=='u')
{
setRequestReload(true);
return true;
}
return false;
}
default:
return false;
}