aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdrian Robert2009-01-22 11:39:10 +0000
committerAdrian Robert2009-01-22 11:39:10 +0000
commita3b53a857d0b2333206ae0d28a77bb1c702f7c42 (patch)
tree60f57b12eed5bfd0ead1e402085e3ceaf0308493 /src
parentc27428a5172399ae883f9e171de49923c4c866c7 (diff)
downloademacs-a3b53a857d0b2333206ae0d28a77bb1c702f7c42.tar.gz
emacs-a3b53a857d0b2333206ae0d28a77bb1c702f7c42.zip
* nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for ns_alternate_modifier. (Bug#1217)
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/nsterm.m9
2 files changed, 13 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a3832220133..b2cba276687 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2
3 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
4 ns_alternate_modifier. (Bug#1217)
5
12009-01-22 Chong Yidong <cyd@stupidchicken.com> 62009-01-22 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * fileio.c (Vwrite_region_post_annotation_function) 8 * fileio.c (Vwrite_region_post_annotation_function)
diff --git a/src/nsterm.m b/src/nsterm.m
index 826efc4a22a..119839e05d1 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -4213,11 +4213,17 @@ fprintf (stderr, "res = %d\n", EQ (res, Qt)); /* FIXME */
4213 4213
4214 4214
4215/* TODO: these may help w/IO switching btwn terminal and NSApp */ 4215/* TODO: these may help w/IO switching btwn terminal and NSApp */
4216- (void)applicationWillBecomeActive: (NSNotification *)notification
4217{
4218 //ns_app_active=YES;
4219}
4216- (void)applicationDidBecomeActive: (NSNotification *)notification 4220- (void)applicationDidBecomeActive: (NSNotification *)notification
4217{ 4221{
4222 //ns_app_active=YES;
4218} 4223}
4219- (void)applicationDidResignActive: (NSNotification *)notification 4224- (void)applicationDidResignActive: (NSNotification *)notification
4220{ 4225{
4226 //ns_app_active=NO;
4221 ns_send_appdefined (-1); 4227 ns_send_appdefined (-1);
4222} 4228}
4223 4229
@@ -4505,7 +4511,8 @@ extern void update_window_cursor (struct window *w, int on);
4505 4511
4506 if (flags & NSAlternateKeyMask) /* default = meta */ 4512 if (flags & NSAlternateKeyMask) /* default = meta */
4507 { 4513 {
4508 if (EQ (ns_alternate_modifier, Qnone) && !fnKeysym) 4514 if ((NILP (ns_alternate_modifier) || EQ (ns_alternate_modifier, Qnone))
4515 && !fnKeysym)
4509 { /* accept pre-interp alt comb */ 4516 { /* accept pre-interp alt comb */
4510 if ([[theEvent characters] length] > 0) 4517 if ([[theEvent characters] length] > 0)
4511 code = [[theEvent characters] characterAtIndex: 0]; 4518 code = [[theEvent characters] characterAtIndex: 0];