From d2e24a7a6507997189f35da37227e1c4051a87d2 Mon Sep 17 00:00:00 2001 From: Jan Dries Date: Thu, 7 Oct 2021 11:26:43 +0200 Subject: [PATCH] fix encoding of string to support JSON data --- onscan.js | 1 + 1 file changed, 1 insertion(+) diff --git a/onscan.js b/onscan.js index e44d7ec..4b0f8f3 100644 --- a/onscan.js +++ b/onscan.js @@ -167,6 +167,7 @@ switch (true) { case iCode >= 48 && iCode <= 90: // numbers and letters case iCode >= 106 && iCode <= 111: // operations on numeric keypad (+, -, etc.) + case iCode === 191: //needed to support JSON data (:) if (oEvent.key !== undefined && oEvent.key !== '') { return oEvent.key; }