mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 16:12:51 +11:00
Fixes broken cmd_enter in Firefox. Closes #96.
This commit is contained in:
parent
5ab0f03443
commit
e7e61cf6e4
1 changed files with 1 additions and 2 deletions
|
@ -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