mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where focus doesn't go to the immediate next editable cell after pressing the tab key on switch cell.
This commit is contained in:
parent
17d0d5e0a2
commit
4c0b229b14
@ -717,7 +717,11 @@ define([
|
|||||||
gotoCell = e.shiftKey ? self.$el.prev() : self.$el.next();
|
gotoCell = e.shiftKey ? self.$el.prev() : self.$el.next();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gotoCell) {
|
if (gotoCell && gotoCell.length > 0) {
|
||||||
|
if(gotoCell.hasClass('editable')){
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
}
|
||||||
let command = new Backgrid.Command({
|
let command = new Backgrid.Command({
|
||||||
key: 'Tab',
|
key: 'Tab',
|
||||||
keyCode: 9,
|
keyCode: 9,
|
||||||
@ -727,12 +731,8 @@ define([
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
// When we have Editable Cell
|
// When we have Editable Cell
|
||||||
if (gotoCell.hasClass('editable') && gotoCell.hasClass('edit-cell')) {
|
if (gotoCell.hasClass('editable') && gotoCell.hasClass('edit-cell')) {
|
||||||
e.preventDefault();
|
|
||||||
e.stopPropagation();
|
|
||||||
gotoCell.trigger('focus');
|
gotoCell.trigger('focus');
|
||||||
} else if (gotoCell.hasClass('editable')) {
|
} else if (gotoCell.hasClass('editable')) {
|
||||||
e.preventDefault();
|
|
||||||
e.stopPropagation();
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
self.model.trigger('backgrid:edited', self.model,
|
self.model.trigger('backgrid:edited', self.model,
|
||||||
self.column, command);
|
self.column, command);
|
||||||
|
Loading…
Reference in New Issue
Block a user