Skip to contentSkip to conversation

Add more function keys to cocoa.m

PATCH Superseded Programmingkid 2 participants 2 messages Jul 30, 2017 – Jul 31, 2017

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 2/2 Add more function keys to cocoa.m

Enable the Cocoa front-end to be able to use function keys F16 to F20.

---
 ui/cocoa.m | 5 +++++
 1 file changed, 5 insertions(+)
ui/cocoa.m +5 -0
index 93e56d0..edc7a65 100644
@@ -225,6 +225,11 @@ const int mac_to_qkeycode_map[] = {
     [kVK_F13] = Q_KEY_CODE_PRINT,
     [kVK_F14] = Q_KEY_CODE_SCROLL_LOCK,
     [kVK_F15] = Q_KEY_CODE_PAUSE,
+    [kVK_F16] = Q_KEY_CODE_F16,
+    [kVK_F17] = Q_KEY_CODE_F17,
+    [kVK_F18] = Q_KEY_CODE_F18,
+    [kVK_F19] = Q_KEY_CODE_F19,
+    [kVK_F20] = Q_KEY_CODE_F20
 
     /*
      * The eject and volume keys can't be used here because they are handled at
Signature · 1 line
2.7.2
Reviewed-by on v2 2/2
#1 lore raw
Quoted 6 lines · Programmingkid

Enable the Cocoa front-end to be able to use function keys F16 to F20.

---
 ui/cocoa.m | 5 +++++
 1 file changed, 5 insertions(+)

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|