make hash_handler parseKeys accessible from outside
This commit is contained in:
parent
fae7a215e7
commit
6799599306
1 changed files with 3 additions and 3 deletions
|
|
@ -84,10 +84,10 @@ function HashHandler(config, platform) {
|
|||
|
||||
var ckb = this.commmandKeyBinding;
|
||||
key.split("|").forEach(function(keyPart) {
|
||||
var binding = parseKeys(keyPart, command);
|
||||
var binding = this.parseKeys(keyPart, command);
|
||||
var hashId = binding.hashId;
|
||||
(ckb[hashId] || (ckb[hashId] = {}))[binding.key] = command;
|
||||
});
|
||||
}, this);
|
||||
};
|
||||
|
||||
this.addCommands = function(commands) {
|
||||
|
|
@ -127,7 +127,7 @@ function HashHandler(config, platform) {
|
|||
this.bindKey(key, command);
|
||||
};
|
||||
|
||||
function parseKeys(keys, val) {
|
||||
this.parseKeys = function(keys, val) {
|
||||
var key;
|
||||
var hashId = 0;
|
||||
var parts = keys.toLowerCase().trim().split(/\s*\-\s*/);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue