thecore_dataentry_commons 1.3.7 → 1.3.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 56da690840959d0290a588597df35e2995b4087a8511dbd0ab48dbedd049a7b9
4
- data.tar.gz: 6be022afb5216c0cd35540e4a9a78bf68729927ca0b3ebbfd0f82580f553123a
3
+ metadata.gz: e47369663c5c11c418b9344a7f3c482cc757a719461b515058da94428cee707f
4
+ data.tar.gz: cc88a743b45ae878b3a8fbfaf05ebb436f96aa179f3e8d43909a47597ada656c
5
5
  SHA512:
6
- metadata.gz: 32789ba7b4c315d20da3aff78469239b4ad1fc17338080628c6c8277d720b189b6c17c596bcaee65dff1d9743dde17687450d2ed847bec04bbf9c04cddcc6e8d
7
- data.tar.gz: 98182e9876affe8f6d6de82bf5d8fc784ef61bfcffeddadfc6167ed0b027089bc1a32aad1ece1c07d310315a400fa34f6a6fc0a7405ec171026d56b639bace6e
6
+ metadata.gz: 2d3b4c6f47f7bfba128a12975ea14a2440365472215b0b611cb7ee52e74ce6d828f66f73acd2051d322cb26a4f7fea34c6105cef1c3d8a09ef90aa7bc05140dc
7
+ data.tar.gz: 01df57e23bbafdc8db1989e55827a5ddf311b20fd3b9d4677abc8c3794683d328dfaf7fc0a90cedbd97f07ebe6b76b6c8aef6d97dd250ca732425f2306680454
@@ -24,12 +24,16 @@
24
24
  // var clickedBtn; var code; Gestisco il keypress sull'input
25
25
  function manageScannedKeystrokes(event) {
26
26
  event.stopPropagation();
27
- if(!keypressAndReturn(event)) {
27
+ if (event.ctrlKey && keycode == '32') {
28
+ console.log(`Keycode: ${keycode}`);
29
+ console.log(`Is ctrlKey? ${event.ctrlKey}`);
30
+ $("#data-action").click();
31
+ //return true;
32
+ } else if(!keypressAndReturn(event) && event.target.id != "barcode") {
28
33
  // $("#send").focus();
29
34
  // Scrivilo nell'input field (accumulando)
30
35
  // Only if target.id is different from "barcode"
31
36
  // Otherwise well get duplicate keystrokes
32
- if(event.target.id != "barcode")
33
37
  $("#barcode").val(function (index, val) {
34
38
  // Write
35
39
  return val + event.key;
@@ -1,3 +1,3 @@
1
1
  module ThecoreDataentryCommons
2
- VERSION = '1.3.7'.freeze
2
+ VERSION = '1.3.8'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_dataentry_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.7
4
+ version: 1.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni