mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix main window tab navigation accessibility issue:
1) Dashboard -> Server Activity grid: terminate the session, cancel active button not navigable using tab key. 2) SQL -> If the focus inside code mirror control tab navigation not working. Fixes #4930
This commit is contained in:
parent
6a5d98cf19
commit
397a1b9616
@ -19,5 +19,6 @@ Bug fixes
|
|||||||
|
|
||||||
| `Issue #4792 <https://redmine.postgresql.org/issues/4792>`_ - Ensure that the superuser should be able to create database, as the superuser overrides all the access restrictions.
|
| `Issue #4792 <https://redmine.postgresql.org/issues/4792>`_ - Ensure that the superuser should be able to create database, as the superuser overrides all the access restrictions.
|
||||||
| `Issue #4878 <https://redmine.postgresql.org/issues/4878>`_ - Ensure that the superuser should be able to create role, as the superuser overrides all the access restrictions.
|
| `Issue #4878 <https://redmine.postgresql.org/issues/4878>`_ - Ensure that the superuser should be able to create role, as the superuser overrides all the access restrictions.
|
||||||
|
| `Issue #4930 <https://redmine.postgresql.org/issues/4930>`_ - Fix main window tab navigation accessibility issue.
|
||||||
| `Issue #4934 <https://redmine.postgresql.org/issues/4934>`_ - Fix the help button link on the User Management dialog.
|
| `Issue #4934 <https://redmine.postgresql.org/issues/4934>`_ - Fix the help button link on the User Management dialog.
|
||||||
| `Issue #4935 <https://redmine.postgresql.org/issues/4935>`_ - Fix accessibility issues.
|
| `Issue #4935 <https://redmine.postgresql.org/issues/4935>`_ - Fix accessibility issues.
|
||||||
|
@ -134,7 +134,7 @@ _.extend(pgBrowser.keyboardNavigation, {
|
|||||||
bindRightPanel: function(event, combo) {
|
bindRightPanel: function(event, combo) {
|
||||||
let allPanels = pgAdmin.Browser.docker.findPanels();
|
let allPanels = pgAdmin.Browser.docker.findPanels();
|
||||||
let activePanel = 0;
|
let activePanel = 0;
|
||||||
let nextPanel = allPanels.length;
|
let nextPanel = allPanels.length - 1;
|
||||||
let prevPanel = 1;
|
let prevPanel = 1;
|
||||||
let activePanelId = 0;
|
let activePanelId = 0;
|
||||||
let activePanelFlag = false;
|
let activePanelFlag = false;
|
||||||
|
@ -52,6 +52,13 @@ define('pgadmin.dashboard', [
|
|||||||
'\'></i>'
|
'\'></i>'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
this.$el.attr('tabindex', 0);
|
||||||
|
this.$el.on('keydown', function(e) {
|
||||||
|
// terminating session or cancel the active query.
|
||||||
|
if (e.keyCode == 32) {
|
||||||
|
self.$el.click();
|
||||||
|
}
|
||||||
|
}),
|
||||||
this.delegateEvents();
|
this.delegateEvents();
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
@ -26,4 +26,16 @@ import 'codemirror/addon/comment/comment';
|
|||||||
import 'sources/codemirror/addon/fold/pgadmin-sqlfoldcode';
|
import 'sources/codemirror/addon/fold/pgadmin-sqlfoldcode';
|
||||||
import 'sources/codemirror/extension/centre_on_line';
|
import 'sources/codemirror/extension/centre_on_line';
|
||||||
|
|
||||||
|
var cmds = CodeMirror.commands;
|
||||||
|
cmds.focusOut = function(){
|
||||||
|
event.stopPropagation();
|
||||||
|
document.activeElement.blur();
|
||||||
|
if(event.currentTarget.parents().find('.sql-code-control')) {
|
||||||
|
// for code mirror in dialogs
|
||||||
|
event.currentTarget.parents().find('.sql-code-control').focus();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
CodeMirror.keyMap.default['Esc'] = 'focusOut';
|
||||||
|
|
||||||
export default CodeMirror;
|
export default CodeMirror;
|
||||||
|
@ -626,6 +626,10 @@ fieldset.inline-fieldset > div {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
& .btn-secondary:focus {
|
||||||
|
box-shadow: $input-btn-focus-box-shadow;
|
||||||
|
}
|
||||||
|
|
||||||
& .input-group {
|
& .input-group {
|
||||||
& .input-group-text {
|
& .input-group-text {
|
||||||
background: $input-bg;
|
background: $input-bg;
|
||||||
|
Loading…
Reference in New Issue
Block a user