Bug 22015 - Some NSKey uses wrong constants
Summary: Some NSKey uses wrong constants
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Library (Xamarin.Mac.dll) ()
Version: Master
Hardware: PC Mac OS
: Normal normal
Target Milestone: 2.0.x
Assignee: Timothy Risi
Depends on:
Reported: 2014-08-11 15:47 UTC by Jérémie Laval
Modified: 2015-03-27 13:14 UTC (History)
6 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Jérémie Laval 2014-08-11 15:47:46 UTC
The constants for some keys are gotten from NSEvent.h whereas they should be gotten from Carbon's Events.h

For instance the arrow keys uses NS*ArrowFunctionKey whereas they should be using kVK_*Arrow
Comment 1 Timothy Risi 2015-01-22 12:20:32 UTC
Fixed for Unified by ac707fe21fe3caf3e4e789c1ede123ee6c8adbc8
Comment 3 Chris Hamons 2015-03-26 16:49:47 UTC
Please try the latest cycle 5 or master build. It should be there now.
Comment 4 Rajneesh Kumar 2015-03-27 13:14:08 UTC
I have checked this issue with the following builds:

=== Xamarin Studio ===
Version 5.9 (build 310)
Installation UUID: 011d70a5-dede-428b-ab04-ef451c2e539d
Mono 4.0.0 ((detached/87c62a1)
GTK+ 2.24.23 (Raleigh theme)
Package version: 400000116
Apple Developer Tools Xcode 6.2 (6776)
Build 6C131e
Xamarin.Mac Version: (Business Edition)
=== Build Information ===
Release ID: 509000310
Git revision: 5e63e3a7face15bd906106306fb4565eaf503995
Build date: 2015-03-26 12:30:38-04
Xamarin addins: 14cabb8b8f6b94fb7aac79016d64f4b9db4d0091
Operating SystemMac OS X 10.9.5
Darwin MacMini.local 13.4.0 Darwin Kernel Version 13.4.0
Sun Aug 17 19:50:11 PDT 2014
root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64

I observed that this issue issue is working fine. Now, NSKey are not using wrong constants. Below are the screencast for the same:

Wrong Constant Value: http://www.screencast.com/t/PBAzMcRbJd0I

Correct Constant Value: http://www.screencast.com/t/9IUUlGs3

This issue has been fixed, hence I am closing this issue.