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;