pkamb / PowerKey

Remap your Macbook's power key to Forward Delete
MIT License
229 stars 29 forks source link

Remap to F13 #7

Closed mrak closed 11 years ago

mrak commented 11 years ago

I like to then map F13 to things like a drop-down terminal, etc.

pkamb commented 11 years ago

Hah, is F13 even a key?

None of the (newer) laptop or external Apple keyboards in the office have one. What kind of keyboard are you using?

mrak commented 11 years ago

Mac OS X will recognize F13 as a key to receive.

Yep, I've seen keyboards that go up to F19. On my previous non-retina MBP I had the eject key mapped to F13, which I could then map in other applications, like the drop-down iTerm2 hotkey.

One of my coworkers had her setup like this:

Eject -> F13 -> Alfred Fn + Eject -> Eject

That would be the Eject key remapped via KeyRemapper4macbook. Then the global hotkey of F13 used to launch Alfred :)

pkamb commented 11 years ago

Oh, you want to send an F13 when you press the power key? I misunderstood.

NSMenuItem *f13 = [[NSMenuItem alloc] initWithTitle:@"F13" action:NULL keyEquivalent:@""];
f13.tag = kVK_F13;
[powerKeyOptions addItem:f13];

If you add that to the bottom of the - (NSMenu *)powerKeyOptions method, you'll be able to send F13 via Powerkey.

I may add support for other keys in the next version. Feel free to add the above to your local version, for now!

mrak commented 11 years ago

Awesome. Sounds good. Could you flag this as an enhancement until the decision is made to include/not include it upstream?

Thanks!

pkamb commented 11 years ago

@mrak F13 has been added to the options in the beta 1.1 pre-release: https://github.com/pkamb/PowerKey/releases/tag/v1.1

Please give it a try, testing in your workflow much appreciated!

mrak commented 11 years ago

Thanks! I'm on vacation at the moment but will test it out once I'm back

Written on a tiny keyboard On Aug 23, 2013 6:05 PM, "Peter Kamb" notifications@github.com wrote:

@mrak https://github.com/mrak F13 has been added to the options in the beta 1.1 pre-release: https://github.com/pkamb/PowerKey/releases/tag/v1.1

Please give it a try, testing in your workflow much appreciated!

— Reply to this email directly or view it on GitHubhttps://github.com/pkamb/PowerKey/issues/7#issuecomment-23171058 .

pkamb commented 11 years ago

Great, thanks. Closing for now; comment back when you have a chance to try it.