Begining of key binding
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user