[FIX] web: list: multi edit boolean with ENTER

This rev. solves the similar issue as 801c603218, but with boolean
fields.

Scenario: select several records, select a boolean cell, press
enter to change the boolean value.

Task 2068280
This commit is contained in:
Aaron Bohy
2019-09-18 11:31:43 +00:00
parent c7ec4bb39d
commit 708a5b6566
@@ -1083,6 +1083,8 @@ var FieldBoolean = AbstractField.extend({
_onKeydown: function (ev) {
switch (ev.which) {
case $.ui.keyCode.ENTER:
// prevent subsequent 'click' event (see _onKeydown of AbstractField)
ev.preventDefault();
this.$input.prop('checked', !this.value);
this._setValue(!this.value);
return;