mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-25 15:56:44 -06:00
Fixed tab key navigation issue for parameters in table dialog. Fixes #5275
This commit is contained in:
parent
4f71dae598
commit
8ceeb39268
@ -24,5 +24,6 @@ Bug fixes
|
||||
| `Issue #4512 <https://redmine.postgresql.org/issues/4512>`_ - Fixed calendar opening issue on the exception tab inside the schedules tab of pgAgent.
|
||||
| `Issue #5180 <https://redmine.postgresql.org/issues/5180>`_ - Fixed an issue where the autovacuum_enabled parameter is added automatically in the RE-SQL when the table has been created using the WITH clause.
|
||||
| `Issue #5268 <https://redmine.postgresql.org/issues/5268>`_ - Fixed generated SQL when any token in FTS Configuration or any option in FTS Dictionary is changed.
|
||||
| `Issue #5275 <https://redmine.postgresql.org/issues/5275>`_ - Fixed tab key navigation issue for parameters in table dialog.
|
||||
| `Issue #5314 <https://redmine.postgresql.org/issues/5314>`_ - Ensure that switch cell is in sync with switch control for accessibility.
|
||||
| `Issue #5351 <https://redmine.postgresql.org/issues/5351>`_ - Fixed compilation warnings while building pgAdmin.
|
@ -55,6 +55,23 @@ define('pgadmin.node.schema', [
|
||||
}
|
||||
}
|
||||
},
|
||||
events : {
|
||||
'keydown': 'keyDownHandler',
|
||||
},
|
||||
|
||||
keyDownHandler : function(event){
|
||||
// move the focus to editable input
|
||||
let lastButton = $(this.$el).find('button:last');
|
||||
let firstEditableCell = $(this.$el).find('td.editable:first');
|
||||
if (event.keyCode== 9 && !event.shiftKey){
|
||||
if ($(firstEditableCell).is(':visible')
|
||||
&& ($(event.target)).is($(lastButton))){
|
||||
$(firstEditableCell).trigger('click');
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
render: function() {
|
||||
var self = this,
|
||||
@ -179,7 +196,6 @@ define('pgadmin.node.schema', [
|
||||
control: Backform.SwitchControl.extend({
|
||||
onChange: function() {
|
||||
Backform.SwitchControl.prototype.onChange.apply(this, arguments);
|
||||
|
||||
let m = this.model;
|
||||
// If value of autovacuum_enabled is false and reloptions is null
|
||||
// then we should set the value of autovacuum_custom to false, as
|
||||
|
@ -1537,6 +1537,17 @@ define('pgadmin.browser.node', [
|
||||
view.$el.closest('.wcFloating').find('[tabindex]:not([tabindex="-1"]').first().focus();
|
||||
return false;
|
||||
}
|
||||
let btnGroup = $(panel.$container.find('.pg-prop-btn-group'));
|
||||
let el = $(btnGroup).find('button:first');
|
||||
if (panel.$container.find('td.editable:last').is(':visible')){
|
||||
if (event.keyCode === 9 && event.shiftKey) {
|
||||
if ($(el).is($(event.target))){
|
||||
$(panel.$container.find('td.editable:last').trigger('click'));
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
setTimeout(function() {
|
||||
|
Loading…
Reference in New Issue
Block a user