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,12 +45,23 @@ zkforge.KeyListener = zk.$extends(zul.Widget, {
|
|||
|
||||
var self = this;
|
||||
jq(document).ready(function () {
|
||||
jq(document).keydown(function (evt) {
|
||||
self.keyDown(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) {
|
||||
if (!evt) evt = window.event;
|
||||
|
||||
|
|
Loading…
Reference in New Issue