emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r113313: *** empty log message ***


From: Jan D.
Subject: [Emacs-diffs] trunk r113313: *** empty log message ***
Date: Sun, 07 Jul 2013 08:41:14 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 113313
revision-id: address@hidden
parent: address@hidden
committer: Jan D. <address@hidden>
branch nick: trunk
timestamp: Sun 2013-07-07 10:41:09 +0200
message:
  *** empty log message ***
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/nsterm.m                   nsterm.m-20091113204419-o5vbwnq5f7feedwu-8747
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2013-07-07 07:28:29 +0000
+++ b/src/ChangeLog     2013-07-07 08:41:09 +0000
@@ -1,3 +1,8 @@
+2013-07-07  Jan Djärv  <address@hidden>
+
+       * nsterm.m (sendEvent:): Propagate keyboard events to modal windows
+       for NS_IMPL_GNUSTEP.
+
 2013-07-07  Paul Eggert  <address@hidden>
 
        Fix openp errno handling.

=== modified file 'src/nsterm.m'
--- a/src/nsterm.m      2013-07-06 17:58:41 +0000
+++ b/src/nsterm.m      2013-07-07 08:41:09 +0000
@@ -4419,6 +4419,16 @@
 /*  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])


reply via email to

[Prev in Thread] Current Thread [Next in Thread]