mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-12-24 07:33:07 +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");
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue