Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

electron-virtual-keyboard

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-virtual-keyboard - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

package.json
{
"name": "electron-virtual-keyboard",
"version": "1.0.3",
"version": "1.0.4",
"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",

@@ -241,2 +241,3 @@ (function (factory) {

}
this._onMouseDown = false;

@@ -280,5 +281,14 @@ this.init();

.focus(function(e) {
if (base._onMouseDown) {
return;
}
base.inputFocus(e.target);
})
.blur(function(e) {
if (base._onMouseDown ) {
e.stopImmediatePropagation();
e.preventDefault();
return false;
}
base.inputUnFocus(e.target);

@@ -290,2 +300,3 @@ });

.mousedown(function(e) {
base._onMouseDown = true;
base.simKeyDown(e.target);

@@ -295,2 +306,3 @@ });

.mouseup(function (e) {
base._onMouseDown = false;
base.simKeyUp(e.target);

@@ -446,9 +458,9 @@ });

// if we pressed on key setup interval to mimic repeated key presses
// if we pressed on key, setup interval to mimic repeated key presses
if ($(el).data('kb-key')) {
this.keydown = delayThenRepeat(() => {
$(this.currentElement).focus();
//$(this.currentElement).focus();
var handler = $(el).data('kb-key-handler');
var key = $(el).data('kb-key');
if (handler ) {
if (handler) {
key = handler(this, $(el));

@@ -455,0 +467,0 @@ }

@@ -25,3 +25,2 @@ const { ipcMain } = require('electron')

config(e, key, value) {
console.log("config: ", arguments);
if ( key == 'keyPressWait' ) {

@@ -46,3 +45,2 @@ this.keyPressWait = parseInt(value);

flushBuffer() {
console.log(this.keyBuffer);
var ch = this.keyBuffer.shift()

@@ -49,0 +47,0 @@ if ( ch === undefined ) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc