diff --git a/dpaste/templates/dpaste/base.html b/dpaste/templates/dpaste/base.html
index 15ddb61..f20fe56 100644
--- a/dpaste/templates/dpaste/base.html
+++ b/dpaste/templates/dpaste/base.html
@@ -33,7 +33,12 @@
jQuery(function($) {
$('.autofocus textarea:first').focus();
$('.superenter textarea').on('keydown', function(e){
- if(e.keyCode == 13 && e.metaKey) {
+ // Windows does not have a metaKey, use ctrl instead.
+ // https://github.com/jquery/jquery/blob/633ca9c1610c49dbb780e565f4f1202e1fe20fae/src/event.js#L552-555
+ if (event.metaKey === undefined) {
+ event.metaKey = event.ctrlKey;
+ }
+ if (e.keyCode == 13 && e.metaKey) {
$(this).closest('form').submit();
return false;
}
diff --git a/dpaste/templates/dpaste/snippet_form.html b/dpaste/templates/dpaste/snippet_form.html
index d647081..8617854 100644
--- a/dpaste/templates/dpaste/snippet_form.html
+++ b/dpaste/templates/dpaste/snippet_form.html
@@ -42,6 +42,6 @@
{% endif %}
- ⌘ + ⏎
+ ⌘+⏎ or Ctrl+⏎