Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriain <iaholmes@microsoft.com>2021-09-03 16:24:24 +0300
committerGitHub <noreply@github.com>2021-09-03 16:24:24 +0300
commitfccff06ea812881862d020a3f19df601231ca4dd (patch)
tree60faaa5ad73aea4f748f73a44f61b8aa0cd9b3e7
parent4bcd747179b5bb0d3a7c3e10c89d22743cafd9a0 (diff)
parent4bd1f41bd570cd1761d8b8071ba64bb93c6c9fc3 (diff)
Merge pull request #1067 from mono/dev/iain/enable-missing-keys
[Xwt.Mac] Enable all the missing keys
-rw-r--r--Xwt.XamMac/Xwt.Mac/KeyboardUtil.cs30
1 files changed, 15 insertions, 15 deletions
diff --git a/Xwt.XamMac/Xwt.Mac/KeyboardUtil.cs b/Xwt.XamMac/Xwt.Mac/KeyboardUtil.cs
index 47aecd32..b41c0a30 100644
--- a/Xwt.XamMac/Xwt.Mac/KeyboardUtil.cs
+++ b/Xwt.XamMac/Xwt.Mac/KeyboardUtil.cs
@@ -74,27 +74,27 @@ namespace Xwt.Mac
case 60: return Key.ShiftRight; // kVK_RightShift = 0x3C
case 61: return Key.AltRight; // kVK_RightOption = 0x3D
case 62: return Key.ControlRight; // kVK_RightControl = 0x3E
- //case 0x3F: return Key.FN; // kVK_Function = 0x3F
- //case 0x40: return Key.F17; // kVK_F17 = 0x40
- //case 0x48: return Key.VolUp; // kVK_VolumeUp = 0x48
- //case 0x49: return Key.VolDown; // kVK_VolumeDown = 0x49
- //case 0x4A: return Key.Mute; // kVK_Mute = 0x4A
- //case 0x4F: return Key.F18; // kVK_F18 = 0x4F
- //case 0x50: return Key.F19; // kVK_F19 = 0x50
- //case 0x5A: return Key.F20; // kVK_F20 = 0x5A
+ case 0x3F: return Key.function; // kVK_Function = 0x3F
+ case 0x40: return Key.F17; // kVK_F17 = 0x40
+ case 0x48: return Key.AudioRaiseVolume; // kVK_VolumeUp = 0x48
+ case 0x49: return Key.AudioLowerVolume; // kVK_VolumeDown = 0x49
+ case 0x4A: return Key.AudioMute; // kVK_Mute = 0x4A
+ case 0x4F: return Key.F18; // kVK_F18 = 0x4F
+ case 0x50: return Key.F19; // kVK_F19 = 0x50
+ case 0x5A: return Key.F20; // kVK_F20 = 0x5A
case 96: return Key.F5; // kVK_F5 = 0x60
case 97: return Key.F6; // kVK_F6 = 0x61
case 98: return Key.F7; // kVK_F7 = 0x62
case 99: return Key.F3; // kVK_F3 = 0x63
case 100: return Key.F8; // kVK_F8 = 0x64
case 101: return Key.F9; // kVK_F9 = 0x65
- //case 0x67: return Key.F11; // kVK_F11 = 0x67
- case 105: return Key.Print; // kVK_F13 = 0x69
- //case 0x6A: return Key.F16; // kVK_F16 = 0x6A
- //case 0x6B: return Key.F14; // kVK_F14 = 0x6B
- case 109: return Key.F10; // kVK_F10 = 0x6D
- //case 0x6F: return Key.F12; // kVK_F12 = 0x6F
- //case 0x71: return Key.F15; // kVK_F15 = 0x71
+ case 0x67: return Key.F11; // kVK_F11 = 0x67
+ case 105: return Key.Print; // kVK_F13 = 0x69
+ case 0x6A: return Key.F16; // kVK_F16 = 0x6A
+ case 0x6B: return Key.F14; // kVK_F14 = 0x6B
+ case 109: return Key.F10; // kVK_F10 = 0x6D
+ case 0x6F: return Key.F12; // kVK_F12 = 0x6F
+ case 0x71: return Key.F15; // kVK_F15 = 0x71
case 114: return Key.Help; // kVK_Help = 0x72
case 115: return Key.Home; // kVK_Home = 0x73
case 116: return Key.PageUp; // kVK_PageUp = 0x74