1
0
Fork 0

Disable flight-related key-bindings in the WaypointList widget for 2.4 release, pending a better solution to PLIB's lack of focus.

This commit is contained in:
James Turner 2011-07-16 13:25:29 +01:00
parent 529ce6b26e
commit 8e682cb8a4

View file

@ -21,6 +21,11 @@
#include <Navaids/positioned.hxx>
#include <Autopilot/route_mgr.hxx>
// select if the widget grabs keys necessary to fly aircraft from the keyboard,
// or not. See http://code.google.com/p/flightgear-bugs/issues/detail?id=338
// for discussion about why / what is going on.
#define AVOID_FLIGHT_KEYS 1
using namespace flightgear;
enum {
@ -660,6 +665,10 @@ int WaypointList::checkKey (int key, int updown )
return FALSE ;
}
#ifdef AVOID_FLIGHT_KEYS
return FALSE;
#endif
switch (key)
{
case PU_KEY_HOME: