Commit 5dd9a6f7 authored by Adrian Robert's avatar Adrian Robert

* nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.

parent a707eb05
2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
* nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
2009-07-22 Jason Rumney <jasonr@gnu.org>
* w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]: Position
......
......@@ -4561,12 +4561,14 @@ most recently updated (I guess), which is not the correct one. */
/* 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");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment