Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

Added platformutils file with the platform special key character function

Andrew Bastin2208403c20a8
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"
+}