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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a425886532f3ef52340ef45036c5b48c33df42e1190c70dd6a583d7b754a097
|
4
|
+
data.tar.gz: 20ea7e7b92f3e2177696b7c22dc80901334f23cad3af32dc2ddcad149491d5f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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);
|