]> git.eshelyaron.com Git - emacs.git/commitdiff
*** empty log message ***
authorJan Djärv <jan.h.d@swipnet.se>
Sun, 7 Jul 2013 08:41:09 +0000 (10:41 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Sun, 7 Jul 2013 08:41:09 +0000 (10:41 +0200)
src/ChangeLog
src/nsterm.m

index f8221e2fd363304740428534a093f904835982f8..069d39ce6beb65aaa9f61af3952bb1942f3dbca2 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 97a6313489df98b127d7b8fd896e3215d0a87f22..dfb82edd7383227cb0fa4d0125d98519fc0ac996 100644 (file)
@@ -4419,6 +4419,16 @@ ns_term_shutdown (int sig)
 /*  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])