Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Taipan

macrumors 6502a
Original poster
Jun 23, 2003
613
517
Hi!
I have just got a Mac Mini M2 with a Magic Keyboard with Touch ID. Since the Touch ID key replaces the CD Eject key, the shortcut command+option+eject for putting The Mac into sleep mode is not available anymore. So I tried to create a custom shortcut using command+option+F13, but that doesn‘t work if I set it to be available in „All Applications“. It does work if I choose single applications like Finder or Safari (although even then it‘s a bit strange, since the shortcut is displayed behind the Sleep menu item in Finder, but not in Safari). It seems to be the same for all items in the Apple menu.
Anybody have any idea? Thank you!
 

bogdanw

macrumors 603
Mar 10, 2009
6,117
3,028
I don’t think it can work for all apps when created in Keyboard - Keyboard Shortcuts- App Shortcuts because “Sleep” is a menu title only in Finder.
In another thread, someone claimed otherwise https://forums.macrumors.com/thread...-keyboard-with-touch-id.2397299/post-32350235

To work in all apps, I would create a QuickAction in Automator – QuickAction – Workflow receives no input – in any application – Run AppleScript:
AppleScript:
tell application "Finder" to sleep
Save, then go into Keyboard - Keyboard Shortcuts – Services – General and set the shortcut ⌘⌥F13

Related - sleep/shut down timer https://forums.macrumors.com/threads/macbook-air-sonoma-sleep-timer.2414412/
 

Taipan

macrumors 6502a
Original poster
Jun 23, 2003
613
517
But the Sleep command is found in the Apple menu, which is accessible from all apps, not just Finder. As I said, it does work in other Apps like Safari as well.
i might try the AppleScript, though. Thank you!
(Also, sorry for creating a new thread, for some reason I didn‘t see the other one when using the search function)
 
Last edited:

bogdanw

macrumors 603
Mar 10, 2009
6,117
3,028
I’ve tried now on a MBA M1 with Sonoma 14.3.1 (23D60) and ⌘F5 seems to be working in all apps for Sleep. I have “Use F1 … as standard function keys” enabled.
sleep.jpg
function.jpg
 

Taipan

macrumors 6502a
Original poster
Jun 23, 2003
613
517
Thank you, bogdanw! I got it to work trying to replicate your settings, but I don't know what did the trick.
First of all, ⌘F5 didn't work for me as it seems to collide with the shortcut for VoiceOver (not that I'm using it).
So I tried with option+⌘F13, but with the "use F1, F2, etc. keys as standard function keys enabled", which then resulted in an error beep when pressing the keys (while still having the settings app active). So I quit the settings app, and it suddenly worked. I went back to the settings, deactivated the "use F1, F2..." setting and it still works.
So my settings are basically just like the very first time I tried, but working now. Very windowsy behaviour.
We'll see whether it survives a reboot, wouldn't be surprised if it didn't.

This "Use F1, F2..." setting is a bit strange. One would think if it's not enabled, everything would be functionally identical once you add the fn key, but that doesn't seem to be the case.
 

bogdanw

macrumors 603
Mar 10, 2009
6,117
3,028
⌘F5 didn't work for me as it seems to collide with the shortcut for VoiceOver (not that I'm using it).
You can disable Turn VoiceOver on or off in Keyboard - Keyboard Shortcuts - Accessibility

This "Use F1, F2..." setting is a bit strange. One would think if it's not enabled, everything would be functionally identical once you add the fn key, but that doesn't seem to be the case.
Apple's documentation
Use keyboard function keys on Mac https://support.apple.com/guide/mac-help/use-keyboard-function-keys-mchlp2596/mac
How to use the function keys on your Mac https://support.apple.com/en-us/102439
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.