diff --git a/client/src/views/search.js b/client/src/views/search.js index 7ef5c2c4..c913a4b6 100644 --- a/client/src/views/search.js +++ b/client/src/views/search.js @@ -1,5 +1,7 @@ const staticRoot = process.env.STATIC_ROOT || '' const hasCam = process.browser && navigator.mediaDevices && navigator.mediaDevices.getUserMedia +const isMac = process.browser && /Mac|iP(hone|od|ad)/i.test((navigator.userAgentData && navigator.userAgentData.platform) || navigator.platform || navigator.userAgent || '') +const hotkeyLabel = isMac ? '⌘K' : 'Ctrl K' export default ({ t, klass, autofocus }) =>
@@ -17,7 +19,7 @@ export default ({ t, klass, autofocus }) => required autocomplete="off" /> -

⌘K

+

{hotkeyLabel}

{ hasCam ? : "" }