From 99f4cc26fc4e9545265ac71e754d17ee2046a86b Mon Sep 17 00:00:00 2001 From: pkamb Date: Fri, 23 Aug 2013 08:22:05 -0700 Subject: [PATCH] - Added `F13` as a power key replacement option - Set Powerkey to use F13. Then set your favorite app to perform a special function when F13 is pressed. - Fixes #7 --- PowerKey/PKPreferencesController.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PowerKey/PKPreferencesController.m b/PowerKey/PKPreferencesController.m index 0931b93..3ec1ea3 100644 --- a/PowerKey/PKPreferencesController.m +++ b/PowerKey/PKPreferencesController.m @@ -70,6 +70,10 @@ - (NSMenu *)powerKeyReplacementsMenu tab.tag = kVK_Tab; [powerKeyOptions addItem:tab]; + NSMenuItem *f13 = [[NSMenuItem alloc] initWithTitle:@"F13" action:NULL keyEquivalent:@""]; + f13.tag = kVK_F13; + [powerKeyOptions addItem:f13]; + return powerKeyOptions; }