Message ID | BAB68128-33C3-4160-87D1-116ABE087536@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Sun, Jul 30, 2017 at 04:29:47PM -0400, Programmingkid wrote: > Enable the Cocoa front-end to be able to use function keys F16 to F20. > > Signed-off-by: John Arbuckle <programmingkidx@gmail.com> > --- > ui/cocoa.m | 5 +++++ > 1 file changed, 5 insertions(+) Reviewed-by: Daniel P. Berrange <berrange@redhat.com> Regards, Daniel
diff --git a/ui/cocoa.m b/ui/cocoa.m index 93e56d0..edc7a65 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -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
Enable the Cocoa front-end to be able to use function keys F16 to F20. Signed-off-by: John Arbuckle <programmingkidx@gmail.com> --- ui/cocoa.m | 5 +++++ 1 file changed, 5 insertions(+)