Cmd / ctrl for copy

master
Nick Sergeant 2011-12-04 19:57:05 -05:00
parent 896946cc2a
commit c95c89f663
2 changed files with 10 additions and 1 deletions

View File

@ -24,7 +24,15 @@
return false;
},
copy: function() {
window.prompt('Text is selected. To copy: press Ctrl+C then <Enter>', 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 <Enter>', this.$raw.text());
return false;
}
});

View File

@ -177,6 +177,7 @@ LOGGING = {
# Email
EMAIL_BACKEND = 'postmark.backends.PostmarkBackend'
POSTMARK_API_KEY = '608d3101-1706-4a96-819f-f2f36fe00fe0'
SEND_BROKEN_LINK_EMAILS = True
# Grappelli settings
GRAPPELLI_ADMIN_TITLE = '<a href="/">Snipt</a>'