+2013-07-07 Jan Djärv <jan.h.d@swipnet.se>
+
+ * nsterm.m (sendEvent:): Propagate keyboard events to modal windows
+ for NS_IMPL_GNUSTEP.
+
2013-07-07 Paul Eggert <eggert@cs.ucla.edu>
Fix openp errno handling.
/* NSTRACE (sendEvent); */
/*fprintf (stderr, "received event of type %d\t%d\n", type);*/
+#ifdef NS_IMPL_GNUSTEP
+ // Keyboard events aren't propagated to file dialogs for some reason.
+ if ([NSApp modalWindow] != nil &&
+ (type == NSKeyDown || type == NSKeyUp || type == NSFlagsChanged))
+ {
+ [[NSApp modalWindow] sendEvent: theEvent];
+ return;
+ }
+#endif
+
if (type == NSApplicationDefined)
{
switch ([theEvent data2])