Command Keys and ScreenSharing

I like to send the command, control and other system keys to hosts that I’m using ScreenSharing or Remote Desktop to access. But as I recently discovered, not everyone does. You can turn this feature off using the defaults command to augment the DoNotSendSystemKeys key of the property list file. Simply run the following command:

defaults write DoNotSendSystemKeys -bool YES

To turn them back on:

defaults write DoNotSendSystemKeys -bool NO

Or for Remote Desktop, augment the

defaults write DoNotSendSystemKeys -bool YES

To turn it back off for Remote Desktop:

defaults write DoNotSendSystemKeys -bool NO

FYI, if you don’t want to send the command keys I think you’re a little weird, but that’s OK. Hope you enjoy anyway…


  • Patrick Fergus
    February 2, 2010 - 10:06 am | Permalink

    You’ve got an extra space in between the “apple.” and “RemoteDesktop”.

    • February 4, 2010 - 8:59 am | Permalink

      Thanks. The fat finger has now been corrected!

  • Facebook User
    February 2, 2010 - 7:10 pm | Permalink

    My problem is that I *want* Cmd-Shift-Q (“Log Out”) to be sent to the remote machine pretty much always while running Screen Sharing. When I’m logged into a remote system, I want to log out of IT when I’m done using it, leaving the remote system up and running. I don’t want “Log Out” to be trapped by the local machine causing me to log out locally. What can we do about THAT?

  • February 2, 2010 - 8:38 pm | Permalink

    I’m just glad it doesn’t send the iTunes keys on the Apple keyboards, that would irritate me muchly.

  • February 3, 2010 - 5:48 am | Permalink

    I suppose you could write a logout AppleScript, then give it a hotkey (via the Services menu?). That might work.

  • Facebook User
    February 5, 2010 - 9:38 am | Permalink

    Thanks, Mike, that’s worth a try. Oddly enough, this is a case when it’s BETTER to be VNCing from a Windows machine to my headless Mac mini than to be ScreenSharing-connecting to it from another Mac. To log out when working from a Windows PC, ALT-SHIFT-Q does the trick, no problem. When on my MacBook, CMD-SHIFT-Q would try to log out locally.

  • Comments are closed.