From e7e61cf6e496ad91d648aedb3ac9ff82ef6c6eeb Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Tue, 24 Oct 2017 18:35:50 +0200 Subject: [PATCH 1/2] Fixes broken cmd_enter in Firefox. Closes #96. --- dpaste/templates/dpaste/base.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dpaste/templates/dpaste/base.html b/dpaste/templates/dpaste/base.html index 2eeb903..9700140 100644 --- a/dpaste/templates/dpaste/base.html +++ b/dpaste/templates/dpaste/base.html @@ -34,8 +34,7 @@ let se = document.querySelector(".superenter textarea"); if (se !== null) { se.onkeydown = function (e) { - let metaKey = navigator.appVersion.indexOf("Win") !== -1 ? e.ctrlKey - : event.metaKey; + let metaKey = navigator.appVersion.indexOf("Win") !== -1 ? e.ctrlKey : e.metaKey; if (e.keyCode === 13 && metaKey) { document.querySelector(".snippet-form").submit(); return false; From 25713de3ae7cd2f1c9fbde8216f8cb569506edaf Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Tue, 24 Oct 2017 18:56:45 +0200 Subject: [PATCH 2/2] Update CHANGELOG --- CHANGELOG | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG b/CHANGELOG index e4e012b..5d8facb 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -11,6 +11,7 @@ Changelog * All views are now class based and use the latest generic based views sugar. * Removed "Suspicious" middleware which was never been used, documented, and also not functional for a while. +* Fixed CMD+Enter form submission shortcut in Firefox. 2.13 (2017-01-20) -----------------