thecore_dataentry_commons 1.3.8 → 1.3.9

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: e47369663c5c11c418b9344a7f3c482cc757a719461b515058da94428cee707f
4
- data.tar.gz: cc88a743b45ae878b3a8fbfaf05ebb436f96aa179f3e8d43909a47597ada656c
3
+ metadata.gz: 5a425886532f3ef52340ef45036c5b48c33df42e1190c70dd6a583d7b754a097
4
+ data.tar.gz: 20ea7e7b92f3e2177696b7c22dc80901334f23cad3af32dc2ddcad149491d5f0
5
5
  SHA512:
6
- metadata.gz: 2d3b4c6f47f7bfba128a12975ea14a2440365472215b0b611cb7ee52e74ce6d828f66f73acd2051d322cb26a4f7fea34c6105cef1c3d8a09ef90aa7bc05140dc
7
- data.tar.gz: 01df57e23bbafdc8db1989e55827a5ddf311b20fd3b9d4677abc8c3794683d328dfaf7fc0a90cedbd97f07ebe6b76b6c8aef6d97dd250ca732425f2306680454
6
+ metadata.gz: 99e2e56f997f06ba51c8672b90bc7306ce6c062040bc59e1342c74fc3e804f67adaf67ceb2920fbef238e4148b791c4dff61120fb70b2ddb81fa1a8c6a219a69
7
+ data.tar.gz: 98b3e99719c724e6abf73dcd0e19f9712d6f2167aa1779b032e5206241bf52b39a87336af17e54c3b09a681043d2dc3d2348975204c6507701f24b0e300c7a9d
@@ -2,8 +2,6 @@
2
2
  function keypressAndReturn(event) {
3
3
  // Capture all the keypresses and if they are a return,
4
4
  // then "click" the send button
5
- event.stopPropagation();
6
- event.preventDefault();
7
5
  var keycode = (event.keyCode ? event.keyCode : event.which);
8
6
  if (keycode == '13') {
9
7
  $("#send").click();
@@ -23,7 +21,6 @@
23
21
  }
24
22
  // var clickedBtn; var code; Gestisco il keypress sull'input
25
23
  function manageScannedKeystrokes(event) {
26
- event.stopPropagation();
27
24
  if (event.ctrlKey && keycode == '32') {
28
25
  console.log(`Keycode: ${keycode}`);
29
26
  console.log(`Is ctrlKey? ${event.ctrlKey}`);
@@ -39,7 +36,10 @@
39
36
  return val + event.key;
40
37
  });
41
38
  }
39
+ event.stopPropagation();
40
+ event.preventDefault();
42
41
  }
42
+
43
43
  function enableKSCapture(){
44
44
  console.log("Enabling keypress capture");
45
45
  $(document).off(kpMode, manageScannedKeystrokes);
@@ -1,3 +1,3 @@
1
1
  module ThecoreDataentryCommons
2
- VERSION = '1.3.8'.freeze
2
+ VERSION = '1.3.9'.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.8
4
+ version: 1.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni