// accelerator.
return;
}
+#if 1
+ // It seemed before that this hack was redundant and
+ // key down events were being generated by wxCanvasInputEvent.
+ // But no longer - why ???
+ //
else if (CheckForKeyDown(_event))
{
// We intercepted and processed the key down event
return;
}
+#endif
else
{
XtDispatchEvent(event);
}
else if (event->type == KeyRelease)
{
+ // TODO: work out why we still need this ! -michael
+ //
if (CheckForKeyUp(_event))
{
// We intercepted and processed the key up event
return wxIcon(error_xpm);
}
}
+
+// ----------------------------------------------------------------------------
+// accessors for C modules
+// ----------------------------------------------------------------------------
+
+extern "C" XtAppContext wxGetAppContext()
+{
+ return (XtAppContext)wxTheApp->GetAppContext();
+}