Added platformutils file with the platform special key character

function
This commit is contained in:
Andrew Bastin
2020-02-27 21:43:30 -05:00
parent 2f2580d2d3
commit 2208403c20

View File

@@ -0,0 +1,3 @@
export function getPlatformSpecialKey() {
return /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) ? "⌘" : "Ctrl"
}