Begining of key binding

This commit is contained in:
2014-11-10 13:40:24 +01:00
parent 20a06686b9
commit 169b8397dc
2 changed files with 28 additions and 1 deletions

View File

@@ -181,6 +181,13 @@ function Buffer (client, buffId, path) {
this.remove = function (off, length, callback) {
client.callFunction("remove", buffId, Types.position(off), length, callback);
};
var keysCallback = {};
this.registerKey = function (key, callback) {
client.specialKeys(key);
Object.defineProperty(keysCallback, key, { value: callback, configurable: true});
};
}
util.inherits(Buffer, EventEmitter);