Add more function keys to cocoa.m
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.
Signed-off-by John Arbuckle <[email protected]>
--- ui/cocoa.m | 5 +++++ 1 file changed, 5 insertions(+)
ui/cocoa.m +5 -0
@@ -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
Quoted 6 lines · Programmingkid
Enable the Cocoa front-end to be able to use function keys F16 to F20.
Signed-off-by John Arbuckle <[email protected]>--- ui/cocoa.m | 5 +++++ 1 file changed, 5 insertions(+)
Reviewed-by Daniel P. Berrange <[email protected]>
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 :|