From 2208403c20a823488b194520c864348b9b1e1b94 Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Thu, 27 Feb 2020 21:43:30 -0500 Subject: [PATCH] Added platformutils file with the platform special key character function --- functions/platformutils.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 functions/platformutils.js diff --git a/functions/platformutils.js b/functions/platformutils.js new file mode 100644 index 000000000..8c285c1d5 --- /dev/null +++ b/functions/platformutils.js @@ -0,0 +1,3 @@ +export function getPlatformSpecialKey() { + return /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) ? "⌘" : "Ctrl" +}