Fix navigation of switch cells in grids. Fixes #4269
parent
941dea99f5
commit
5786c17569
|
@ -23,4 +23,5 @@ Bug fixes
|
|||
| `Bug #4245 <https://redmine.postgresql.org/issues/4245>`_ - Ensure that element should get highlighted when they get focus on using Tab key.
|
||||
| `Bug #4246 <https://redmine.postgresql.org/issues/4246>`_ - Fixed console error when subnode control is used in panels.
|
||||
| `Bug #4261 <https://redmine.postgresql.org/issues/4261>`_ - Stop using application/x-javascript as a mime type and use the RFC-compliant application/javascript instead.
|
||||
| `Bug #4262 <https://redmine.postgresql.org/issues/4262>`_ - Fixed error on displaying table properties of a table partitioned by list having a default partition.
|
||||
| `Bug #4262 <https://redmine.postgresql.org/issues/4262>`_ - Fixed error on displaying table properties of a table partitioned by list having a default partition.
|
||||
| `Bug #4269 <https://redmine.postgresql.org/issues/4269>`_ - Fix navigation of switch cells in grids.
|
|
@ -545,20 +545,24 @@ define([
|
|||
}
|
||||
|
||||
if (gotoCell) {
|
||||
let command = new Backgrid.Command({
|
||||
key: 'Tab',
|
||||
keyCode: 9,
|
||||
which: 9,
|
||||
shiftKey: e.shiftKey,
|
||||
});
|
||||
setTimeout(function() {
|
||||
// When we have Editable Cell
|
||||
if (gotoCell.hasClass('editable')) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
var command = new Backgrid.Command({
|
||||
key: 'Tab',
|
||||
keyCode: 9,
|
||||
which: 9,
|
||||
shiftKey: e.shiftKey,
|
||||
});
|
||||
self.model.trigger('backgrid:edited', self.model,
|
||||
self.column, command);
|
||||
this.exitEditMode();
|
||||
gotoCell.trigger('focus');
|
||||
} else {
|
||||
// When we have Non-Editable Cell
|
||||
self.model.trigger('backgrid:edited', self.model,
|
||||
self.column, command);
|
||||
}
|
||||
}, 20);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue