How to assign a percentage key to the Magic Keyboard's numeric keypad?

The calculator app has a useful percentage function, however one isn't present on the right hand keypad of the Magic Keyboard. I'd like to assign F19 to be a percentage function but am not sure how to do so. Any ideas please? Thanks, Rob

MacBook Pro 14″, macOS 14.0

Posted on Oct 19, 2023 8:06 AM

Reply
4 replies

Oct 20, 2023 2:50 AM in response to RobH32

I had only tried this with Mail and Safari, and in those applications it is working.

I now tried this with Calculator and it does not work.


I does work if I run the shortcut directly from Shortcuts (I have to add a command to bring Calculator to the front in this case, that's normal).

This tells me that the problem is not the script itself, but that Calculator may be intercepting the keyboard presses somehow, so the shortcut simply does not get to run. The beep we hear is Calculator grabbing the F19 key and saying "it's invalid".

Oct 19, 2023 11:05 AM in response to RobH32

I was able to do this in a somewhat roundabout way, but it seems to work!


I made a shortcut using the Shortcuts application:



I assigned it fn-F12 because there is no F19 key in my MBP and I do not have "Use F1, F2 etc as standard function keys".


It works, but I had first to go to System Settings->Privacy & Security->Accessibility and add Shortcuts to the list of applications that are "allowed to control your computer". Also, you will have to add Calculator to that list.


%%%%%%%% typed using this method :-)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to assign a percentage key to the Magic Keyboard's numeric keypad?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.