Comparing version 0.5.1 to 0.5.2
@@ -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
69483
38
433