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) ----------------- 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;