Merge remote-tracking branch 'origin/v3' into v3

This commit is contained in:
Martin Mahner 2017-12-12 20:12:08 +01:00
commit d9bce49852
2 changed files with 2 additions and 2 deletions

View file

@ -11,6 +11,7 @@ Changelog
* All views are now class based and use the latest generic based views sugar. * All views are now class based and use the latest generic based views sugar.
* Removed "Suspicious" middleware which was never been used, documented, * Removed "Suspicious" middleware which was never been used, documented,
and also not functional for a while. and also not functional for a while.
* Fixed CMD+Enter form submission shortcut in Firefox.
2.13 (2017-01-20) 2.13 (2017-01-20)
----------------- -----------------

View file

@ -34,8 +34,7 @@
let se = document.querySelector(".superenter textarea"); let se = document.querySelector(".superenter textarea");
if (se !== null) { if (se !== null) {
se.onkeydown = function (e) { se.onkeydown = function (e) {
let metaKey = navigator.appVersion.indexOf("Win") !== -1 ? e.ctrlKey let metaKey = navigator.appVersion.indexOf("Win") !== -1 ? e.ctrlKey : e.metaKey;
: event.metaKey;
if (e.keyCode === 13 && metaKey) { if (e.keyCode === 13 && metaKey) {
document.querySelector(".snippet-form").submit(); document.querySelector(".snippet-form").submit();
return false; return false;