---
title: "Comment by Ben Thomas on \"How to re-enable keyboard shortcuts in Xcode 27's Device Hub\" | Hashnode"
description: "Got this: Command line interface to a user's defaults. Syntax: 'defaults' [-currentHost | -host &lt;hostname&gt;] followed by one of the following:"
url: "https://hashnode.com/posts/how-to-re-enable-keyboard-shortcuts-in-xcode-27-s-device-hub/6aa956f34e1cd980d2f9d5f0/comment/6aab06e697755ad44428e3f3"
---

[Discussion](https://hashnode.com/posts/how-to-re-enable-keyboard-shortcuts-in-xcode-27-s-device-hub/6aa956f34e1cd980d2f9d5f0)

Comment [How to re-enable keyboard shortcuts in Xcode 27's Device Hub](https://hashnode.com/posts/how-to-re-enable-keyboard-shortcuts-in-xcode-27-s-device-hub/6aa956f34e1cd980d2f9d5f0)

[Ben Thomas](https://hashnode.com/@iosdevben)

[Sep 16](https://hashnode.com/posts/how-to-re-enable-keyboard-shortcuts-in-xcode-27-s-device-hub/6aa956f34e1cd980d2f9d5f0/comment/6aab06e697755ad44428e3f3)

Got this:

```
Command line interface to a user's defaults.
Syntax:

'defaults' [-currentHost | -host <hostname>] followed by one of the following:
```

[Kris Slazinski](https://hashnode.com/@kslazinski)

[Sep 16](https://hashnode.com/posts/how-to-re-enable-keyboard-shortcuts-in-xcode-27-s-device-hub/6aa956f34e1cd980d2f9d5f0/comment/6aab06e697755ad44428e3f3#reply-6aab0db8348ef92dcdd6e0d7)

Do you have macOS 27 and Xcode 27 installed? Was this the whole output from Terminal? Which command did you run in Terminal?

[Ben Thomas](https://hashnode.com/@iosdevben)

[Sep 16](https://hashnode.com/posts/how-to-re-enable-keyboard-shortcuts-in-xcode-27-s-device-hub/6aa956f34e1cd980d2f9d5f0/comment/6aab06e697755ad44428e3f3#reply-6aab1abc642542b3dc70e348)

Hi Kris, I'm still on macOS 26 on this work laptop because we need to keep submitting with Xcode 26 for the time being.

I do have Xcode 27 installed.

The command I ran in terminal was: `defaults -container com.apple.dt.Devices write com.apple.dt.Devices hostKeybindingPolicy -int 1`

I tried running `defaults write com.apple.dt.Devices hostKeybindingPolicy -int 1` but still the screenshot shortcut doesn't appear in the Controls menu of DeviceHub.

Regards Ben

[Kris Slazinski](https://hashnode.com/@kslazinski)

[Sep 17](https://hashnode.com/posts/how-to-re-enable-keyboard-shortcuts-in-xcode-27-s-device-hub/6aa956f34e1cd980d2f9d5f0/comment/6aab06e697755ad44428e3f3#reply-6aaba10d10aa29c1b791514c)

Ben, you should use 0 not 1 to have shortcuts enabled in both modes.

I don’t know why did you see this message you posted earlier. Maybe because of macOS 26? Also, this command for changing settings should be posted as one thing. Formatted on blog it looks like separate lines of commands.

Also I heard from one person that they needed to grant full disk access to Terminal to make this work - but again the message you posted didn’t look like that’s the case.

[Giano](https://hashnode.com/@giano)

[Sep 30](https://hashnode.com/posts/how-to-re-enable-keyboard-shortcuts-in-xcode-27-s-device-hub/6aa956f34e1cd980d2f9d5f0/comment/6aab06e697755ad44428e3f3#reply-6abd907c6ea9966cbe49fe02)

This worked for me on macOS 26:

```
defaults write com.apple.dt.Devices hostKeybindingPolicy -int 0
```
