From 5dd9a6f79996ac57275b150b336a492ec8f67e58 Mon Sep 17 00:00:00 2001 From: Adrian Robert Date: Thu, 23 Jul 2009 11:52:45 +0000 Subject: [PATCH] * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger. --- src/ChangeLog | 4 ++++ src/nsterm.m | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index e5c2c730d56..3d4ef29a877 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2009-07-23 Adrian Robert + + * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger. + 2009-07-22 Jason Rumney * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]: Position diff --git a/src/nsterm.m b/src/nsterm.m index 32075cf20e1..e140b0eaefb 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -4561,12 +4561,14 @@ extern void update_window_cursor (struct window *w, int on); /* Needed to pick up Ctrl-tab and possibly other events that OS X has decided not to send key-down for. See http://osdir.com/ml/editors.vim.mac/2007-10/msg00141.html + This only applies on Tiger and earlier. If it matches one of these, send it on to keyDown. */ -(void)keyUp: (NSEvent *)theEvent { int flags = [theEvent modifierFlags]; int code = [theEvent keyCode]; - if (code == 0x30 && (flags & NSControlKeyMask) && !(flags & NSCommandKeyMask)) + if (floor (NSAppKitVersionNumber) <= 824 /*NSAppKitVersionNumber10_4*/ && + code == 0x30 && (flags & NSControlKeyMask) && !(flags & NSCommandKeyMask)) { if (NS_KEYLOG) fprintf (stderr, "keyUp: passed test"); -- 2.39.2