Comparing version 0.6.1 to 0.6.3
@@ -9,2 +9,3 @@ { | ||
"keypad", | ||
"numpad", | ||
"keyboard", | ||
@@ -11,0 +12,0 @@ "alphanumeric", |
@@ -149,3 +149,4 @@ // Generated by CoffeeScript 1.8.0 | ||
nokia: require('./MapNokia.js'), | ||
sonyericsson: require('./MapSonyericsson.js') | ||
sonyericsson: require('./MapSonyericsson.js'), | ||
siemens: require('./MapSiemens.js') | ||
}; | ||
@@ -159,2 +160,3 @@ } | ||
this.on('hold', this.ProcessKeyHold); | ||
this.on('timeout', this.Timeout); | ||
} | ||
@@ -230,3 +232,3 @@ | ||
if (current_index >= 0) { | ||
this.ResetTimeout(); | ||
this.RestartTimeout(); | ||
if (this.mapping[key][current_index + 1] != null) { | ||
@@ -246,3 +248,3 @@ return this.character = this.mapping[key][current_index + 1]; | ||
} | ||
return this.ResetTimeout(); | ||
return this.RestartTimeout(); | ||
}; | ||
@@ -340,13 +342,12 @@ | ||
Resetting typing tymeout | ||
@method ResetTimeout | ||
@method RestartTimeout | ||
*/ | ||
_Class.prototype.ResetTimeout = function() { | ||
_Class.prototype.RestartTimeout = function() { | ||
this.ClearTimeout(); | ||
return this.timeout = setTimeout((function(_this) { | ||
return this.timeout = setTimeout(((function(_this) { | ||
return function() { | ||
_this.InsertCharacter(); | ||
return _this.timeout = null; | ||
return _this.Timeout(); | ||
}; | ||
})(this), this.delay); | ||
})(this)), this.delay); | ||
}; | ||
@@ -356,2 +357,13 @@ | ||
/** | ||
When timeout happens, inserting new character and clearing the timeout | ||
@method Timeout | ||
*/ | ||
_Class.prototype.Timeout = function() { | ||
this.InsertCharacter(); | ||
return this.ClearTimeout(); | ||
}; | ||
/** | ||
Clear current keys timeout | ||
@@ -364,4 +376,4 @@ @method ClearTimeout | ||
clearTimeout(this.timeout); | ||
return this.timeout = null; | ||
} | ||
return this.timeout = null; | ||
}; | ||
@@ -368,0 +380,0 @@ |
@@ -25,2 +25,17 @@ // Generated by CoffeeScript 1.8.0 | ||
exports.de = { | ||
'1': ['.', ',', '?', '!', '\'', '"', '1', '-', '(', ')', '@', '/', ':', '_'], | ||
'2': ['a', 'b', 'c', '2', 'ä', 'à', 'á', 'ã', 'â', 'å', 'æ', 'ç'], | ||
'3': ['d', 'e', 'f', '3', 'è', 'é', 'ë', 'ê', 'ð'], | ||
'4': ['g', 'h', 'i', '4', 'ì', 'í', 'î', 'ï'], | ||
'5': ['j', 'k', 'l', '5', '£'], | ||
'6': ['m', 'n', 'o', '6', 'ò', 'ó', 'ô', 'õ', 'ö', 'ø', 'ñ'], | ||
'7': ['p', 'q', 'r', 's', '7', 'ß', '$'], | ||
'8': ['t', 'u', 'v', '8', 'ü', 'ù', 'ú', 'û'], | ||
'9': ['w', 'x', 'y', 'z', '9', 'ý', 'þ'], | ||
'*': [], | ||
'0': [' ', '0', '\n'], | ||
'#': ['CASE'] | ||
}; | ||
}).call(this); |
{ | ||
"name": "keypad", | ||
"description": "12-key keyboard layout emulation, similar to one that is used in mobile phones", | ||
"version": "0.6.1", | ||
"version": "0.6.3", | ||
"repository": "https://github.com/muchweb/keypad", | ||
@@ -23,2 +23,3 @@ "license": "GPL-3.0+", | ||
"keypad", | ||
"numpad", | ||
"keyboard", | ||
@@ -25,0 +26,0 @@ "alphanumeric", |
@@ -1,3 +0,2 @@ | ||
# Keypad | ||
[](https://travis-ci.org/muchweb/keypad) [](https://coveralls.io/r/muchweb/keypad) [](https://gemnasium.com/muchweb/keypad) [](http://badge.fury.io/js/keypad)  | ||
# Keypad [](https://travis-ci.org/muchweb/keypad) [](https://coveralls.io/r/muchweb/keypad) [](https://gemnasium.com/muchweb/keypad) [](http://badge.fury.io/js/keypad) [](http://badge.fury.io/bo/keypad)  | ||
@@ -11,6 +10,10 @@ 12-key keyboard layout emulation, similar to one that is used in mobile phones. | ||
Sony Ericsson mappings are compatible with these models: | ||
Sony Ericsson mapping is compatible with this model: | ||
- Sony Ericsson C902 | ||
Sony Siemens mapping is compatible with this model: | ||
- Siemens A35 | ||
## Usage | ||
@@ -17,0 +20,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
74570
587
76