electron-virtual-keyboard
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "electron-virtual-keyboard", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "An electron based virtual keyboard. Uses electron's sendInputEvent api to implement a simple customizable soft keyboard.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -298,9 +298,17 @@ (function (factory) { | ||
.on("mousedown touchstart", function(e) { | ||
base._onMouseDown = true; | ||
base.simKeyDown(e.target); | ||
if (!base._onMouseDown && $(e.target).data('kb-key') ) { | ||
base._onMouseDown = true; | ||
base.simKeyDown(e.target); | ||
e.stopImmediatePropagation(); | ||
return false; | ||
} | ||
}); | ||
$('body') | ||
.on("mouseup touchend touchcancel", function(e) { | ||
base._onMouseDown = false; | ||
base.simKeyUp(e.target); | ||
.on("mouseup touchend", function(e) { | ||
if ( base._onMouseDown) { | ||
console.log("up: ", e); | ||
base._onMouseDown = false; | ||
base.simKeyUp(e.target); | ||
} | ||
}); | ||
@@ -307,0 +315,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
518120
902