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;
|
var self = this;
|
||||||
jq(document).ready(function () {
|
jq(document).ready(function () {
|
||||||
jq(document).keydown(function (evt) {
|
jq(document).keydown(self, self.keyDownHandle);
|
||||||
self.keyDown(evt);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
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) {
|
keyDown: function(evt) {
|
||||||
if (!evt) evt = window.event;
|
if (!evt) evt = window.event;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue