changeset 314bc519d00e in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=314bc519d00e
description:
Do not bind twice keydown event on key_press method
The event is already binded in the Form widget so the EditableTree
widget does
not need to bind it again otherwise the callback is called twice per
event.
issue8429
review255571002
diffstat:
src/view/tree.js | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 519b72bb1d60 -r 314bc519d00e src/view/tree.js
--- a/src/view/tree.js Mon Jun 17 22:24:46 2019 +0200
+++ b/src/view/tree.js Thu Jun 20 23:15:06 2019 +0200
@@ -2154,7 +2154,6 @@
init: function(view, attributes) {
Sao.View.EditableTree.Many2One._super.init.call(
this, view, attributes);
- this.el.on('keydown', this.key_press.bind(this));
},
key_press: function(event_) {
if (event_.which == Sao.common.TAB_KEYCODE) {
@@ -2171,7 +2170,6 @@
init: function(view, attributes) {
Sao.View.EditableTree.Reference._super.init.call(
this, view, attributes);
- this.el.on('keydown', this.key_press.bind(this));
},
key_press: function(event_) {
if (event_.which == Sao.common.TAB_KEYCODE) {
@@ -2188,7 +2186,6 @@
init: function(view, attributes) {
Sao.View.EditableTree.One2One._super.init.call(
this, view, attributes);
- this.el.on('keydown', this.key_press.bind(this));
},
key_press: function(event_) {
if (event_.which == Sao.common.TAB_KEYCODE) {