mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 16:12:51 +11:00
Merge remote-tracking branch 'origin/v3' into v3
This commit is contained in:
commit
d9bce49852
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
-----------------
|
-----------------
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue