New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

keypad

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

keypad - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

tests/KeypadHelperPressingInterrupting.coffee

14

lib/Keypad.js

@@ -216,10 +216,14 @@ // Generated by CoffeeScript 1.8.0

this.character = this.mapping[key][0];
if (this.character === 'CASE') {
return this.LoopCase();
}
if (immediate) {
this.InsertCharacter(this.character);
} else {
this.ResetTimeout();
if (this.timeout != null) {
clearTimeout(this.timeout);
}
this.timeout = null;
return;
}
if (this.character === 'CASE') {
return this.LoopCase();
}
return this.ResetTimeout();
};

@@ -226,0 +230,0 @@

@@ -96,8 +96,8 @@ // Generated by CoffeeScript 1.8.0

}
if (key !== this.holding_key) {
if ((key != null) && key !== this.holding_key) {
return;
}
this.emit('press', this.holding_key);
clearTimeout(this.holding_timeout);
this.holding_timeout = null;
this.emit('press', this.holding_key, immediate);
return this.holding_key = null;

@@ -104,0 +104,0 @@ };

{
"name": "keypad",
"description": "12-key keyboard layout emulation, similar to one that is used in mobile phones",
"version": "0.5.1",
"version": "0.5.2",
"repository": "https://github.com/muchweb/keypad",

@@ -6,0 +6,0 @@ "license": "GPL-3.0+",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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