From 11013284dba9133e0610567e6016041750c9ed6a Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Sun, 4 Dec 2011 19:57:19 -0500 Subject: [PATCH] cmd --- snipt/media/cache/snipt.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/snipt/media/cache/snipt.js b/snipt/media/cache/snipt.js index 0eef20e..4a333a0 100644 --- a/snipt/media/cache/snipt.js +++ b/snipt/media/cache/snipt.js @@ -998,7 +998,15 @@ jQuery(function($) { return false; }, copy: function() { - window.prompt('Text is selected. To copy: press Ctrl+C then ', this.$raw.text()); + var cmd; + if (navigator.platform == 'MacPPC' || + navigator.platform == 'MacIntel') { + cmd = 'Cmd'; + } + else { + cmd = 'Ctrl'; + } + window.prompt('Text is selected. To copy: press ' + cmd + '+C then ', this.$raw.text()); return false; } });