From b8c8cb794d9cd30f8d8c5d269472777e007dae4a Mon Sep 17 00:00:00 2001 From: Eli Flanagan Date: Tue, 24 Oct 2017 11:33:49 -0500 Subject: [PATCH] fix undefined variable (#97) --- dpaste/templates/dpaste/base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpaste/templates/dpaste/base.html b/dpaste/templates/dpaste/base.html index a8c7115..3ae8e47 100644 --- a/dpaste/templates/dpaste/base.html +++ b/dpaste/templates/dpaste/base.html @@ -40,7 +40,7 @@ jQuery(function($) { if (navigator.appVersion.indexOf("Win")!=-1) { metaKey = e.ctrlKey; } else { - metaKey = event.metaKey; + metaKey = e.metaKey; } if (e.keyCode == 13 && metaKey) { $(this).closest('form').submit();