From e247c716c2af9077dfc00be352ac0bb6bcb0185b Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sun, 22 Nov 2020 17:55:25 -0500 Subject: [PATCH] editor: Add argument to suppress SonarCloud error This also makes it easier for devs to understand the expected function signature. --- src/static/js/ace2_inner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js index 9b6ea6352..06e8908e3 100644 --- a/src/static/js/ace2_inner.js +++ b/src/static/js/ace2_inner.js @@ -92,7 +92,7 @@ function Ace2Inner() { let outsideKeyDown = noop; - let outsideKeyPress = function () { return true; }; + let outsideKeyPress = function (e) { return true; }; let outsideNotifyDirty = noop;