IDEMPIERE-4413:Change Role, disfunction all keyboard shortcuts (#216)
remove keydown handle at client side
This commit is contained in:
parent
7892c54aa1
commit
23ed373e5d
|
@ -45,10 +45,21 @@ zkforge.KeyListener = zk.$extends(zul.Widget, {
|
|||
|
||||
var self = this;
|
||||
jq(document).ready(function () {
|
||||
jq(document).keydown(function (evt) {
|
||||
jq(document).keydown(self, self.keyDownHandle);
|
||||
});
|
||||
},
|
||||
|
||||
unbind_: function (skipper, after) {
|
||||
this.$supers('unbind_', arguments);
|
||||
|
||||
var self = this;
|
||||
jq(document).off("keydown", self.keyDownHandle);
|
||||
},
|
||||
|
||||
keyDownHandle: function(evt){
|
||||
var self = evt.data;
|
||||
self.keyDown(evt);
|
||||
});
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
keyDown: function(evt) {
|
||||
|
|
Loading…
Reference in New Issue