diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-21 08:49:46 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-21 08:49:46 +0700 |
| commit | 919af07c186c43f2e9f41c005d2ba16aa5e8596d (patch) | |
| tree | 508e6da1353b6f0149b5cb3b40908fccb826f507 /indoteknik_custom/static | |
| parent | 54291a49ebd3b2939590ad22ccd792b874977328 (diff) | |
<Miqdad> Unblock
Diffstat (limited to 'indoteknik_custom/static')
| -rw-r--r-- | indoteknik_custom/static/src/js/check_product_barcode.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/static/src/js/check_product_barcode.js b/indoteknik_custom/static/src/js/check_product_barcode.js index aedba34d..9da41479 100644 --- a/indoteknik_custom/static/src/js/check_product_barcode.js +++ b/indoteknik_custom/static/src/js/check_product_barcode.js @@ -4,7 +4,7 @@ odoo.define('indoteknik_custom.prevent_manual_typing', function (require) { console.log("✅ Custom JS from indoteknik_custom loaded!"); - const THRESHOLD_MS = 250; + const THRESHOLD_MS = 300; let lastTime = 0; let burstCount = 0; @@ -16,7 +16,7 @@ odoo.define('indoteknik_custom.prevent_manual_typing', function (require) { } else { burstCount = 1; } - return burstCount >= 2; // setelah 3 char cepat, dianggap scanner + return burstCount >= 2; } document.addEventListener('keydown', function (e) { |
