aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2013-07-07 10:41:09 +0200
committerJan Djärv2013-07-07 10:41:09 +0200
commit0da857ddacb50219c6988bb68457e70dbe555826 (patch)
tree168467314a2f1feca6e0f36f55937c754eef6f44 /src
parent5f86adcd2c79e58c6ceeb30fb26c44e830b26a3e (diff)
downloademacs-0da857ddacb50219c6988bb68457e70dbe555826.tar.gz
emacs-0da857ddacb50219c6988bb68457e70dbe555826.zip
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/nsterm.m10
2 files changed, 15 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f8221e2fd36..069d39ce6be 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12013-07-07 Jan Djärv <jan.h.d@swipnet.se>
2
3 * nsterm.m (sendEvent:): Propagate keyboard events to modal windows
4 for NS_IMPL_GNUSTEP.
5
12013-07-07 Paul Eggert <eggert@cs.ucla.edu> 62013-07-07 Paul Eggert <eggert@cs.ucla.edu>
2 7
3 Fix openp errno handling. 8 Fix openp errno handling.
diff --git a/src/nsterm.m b/src/nsterm.m
index 97a6313489d..dfb82edd738 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -4419,6 +4419,16 @@ ns_term_shutdown (int sig)
4419/* NSTRACE (sendEvent); */ 4419/* NSTRACE (sendEvent); */
4420/*fprintf (stderr, "received event of type %d\t%d\n", type);*/ 4420/*fprintf (stderr, "received event of type %d\t%d\n", type);*/
4421 4421
4422#ifdef NS_IMPL_GNUSTEP
4423 // Keyboard events aren't propagated to file dialogs for some reason.
4424 if ([NSApp modalWindow] != nil &&
4425 (type == NSKeyDown || type == NSKeyUp || type == NSFlagsChanged))
4426 {
4427 [[NSApp modalWindow] sendEvent: theEvent];
4428 return;
4429 }
4430#endif
4431
4422 if (type == NSApplicationDefined) 4432 if (type == NSApplicationDefined)
4423 { 4433 {
4424 switch ([theEvent data2]) 4434 switch ([theEvent data2])