Commit 0da857dd authored by Jan Djärv's avatar Jan Djärv
Browse files

*** empty log message ***

parent 5f86adcd
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.
......
......@@ -4419,6 +4419,16 @@ - (void)sendEvent: (NSEvent *)theEvent
/* 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])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment