From b362cd2ef699a2c6ee4dbb4eb4124fc0b147a021 Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Sat, 30 Nov 2013 13:22:59 +0100 Subject: [PATCH] Cmd+Enter form submit --- dpaste/static/dpaste/theme.css | 7 +++++++ dpaste/templates/dpaste/base.html | 11 +++++++++++ dpaste/templates/dpaste/snippet_form.html | 2 ++ 3 files changed, 20 insertions(+) diff --git a/dpaste/static/dpaste/theme.css b/dpaste/static/dpaste/theme.css index 2f96b56..86c93ab 100644 --- a/dpaste/static/dpaste/theme.css +++ b/dpaste/static/dpaste/theme.css @@ -80,6 +80,13 @@ h1, h2, h3, h4 { opacity: 1; } +.shortcut { + color: #AAA; + font-size: 13px; + font-weight: 300; + margin-left: 15px; +} + /* ---------------------------------------------------------------------------- Snippet Details ---------------------------------------------------------------------------- */ diff --git a/dpaste/templates/dpaste/base.html b/dpaste/templates/dpaste/base.html index 39250db..15ddb61 100644 --- a/dpaste/templates/dpaste/base.html +++ b/dpaste/templates/dpaste/base.html @@ -29,6 +29,17 @@ {% block script_footer %} + {% endblock %} diff --git a/dpaste/templates/dpaste/snippet_form.html b/dpaste/templates/dpaste/snippet_form.html index 4880543..d647081 100644 --- a/dpaste/templates/dpaste/snippet_form.html +++ b/dpaste/templates/dpaste/snippet_form.html @@ -9,6 +9,7 @@
@@ -41,5 +42,6 @@
{% endif %} + ⌘ + ⏎