changeset e83c8f432bee in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=e83c8f432bee
description:
Remove custom keypress event on xxx2One editable columns
They are no more needed since changeset fbe26a6cce32
issue8481
review251741002
diffstat:
src/view/tree.js | 25 +------------------------
1 files changed, 1 insertions(+), 24 deletions(-)
diffs (56 lines):
diff -r 8de5a74efe2a -r e83c8f432bee src/view/tree.js
--- a/src/view/tree.js Mon Jul 22 23:48:17 2019 +0200
+++ b/src/view/tree.js Tue Jul 23 00:05:09 2019 +0200
@@ -2175,14 +2175,6 @@
Sao.View.EditableTree.Many2One._super.init.call(
this, view, attributes);
},
- key_press: function(event_) {
- if (event_.which == Sao.common.TAB_KEYCODE) {
- this.focus_out();
- } else {
- Sao.View.EditableTree.Many2One._super.key_press.call(this,
- event_);
- }
- }
});
Sao.View.EditableTree.Reference = Sao.class_(Sao.View.Form.Reference, {
@@ -2191,14 +2183,6 @@
Sao.View.EditableTree.Reference._super.init.call(
this, view, attributes);
},
- key_press: function(event_) {
- if (event_.which == Sao.common.TAB_KEYCODE) {
- this.focus_out();
- } else {
- Sao.View.EditableTree.Reference._super.key_press.call(this,
- event_);
- }
- }
});
Sao.View.EditableTree.One2One = Sao.class_(Sao.View.Form.One2One, {
@@ -2207,14 +2191,6 @@
Sao.View.EditableTree.One2One._super.init.call(
this, view, attributes);
},
- key_press: function(event_) {
- if (event_.which == Sao.common.TAB_KEYCODE) {
- this.focus_out();
- } else {
- Sao.View.EditableTree.One2One._super.key_press.call(this,
- event_);
- }
- }
});
Sao.View.EditableTree.One2Many = Sao.class_(Sao.View.EditableTree.Char, {
@@ -2231,6 +2207,7 @@
}
},
key_press: function(event_) {
+ // TODO: remove when key_press is implemented
if (event_.which == Sao.common.TAB_KEYCODE) {
this.focus_out();
}