Set proper focus on tab navigation for file manager dialog. Fixes #5107 

- Show focus when the Tab key is pressed
 - Pressing the Enter key on C:\ drive does not open it on Windows
This commit is contained in:
Murtuza Zabuawala 2020-02-07 11:13:41 +05:30 committed by Akshay Joshi
parent 26cdda090e
commit c9500a5122
4 changed files with 39 additions and 2 deletions

View File

@ -11,6 +11,7 @@ notes for it.
.. toctree::
:maxdepth: 1
release_notes_4_19
release_notes_4_18
release_notes_4_17
release_notes_4_16

View File

@ -0,0 +1,20 @@
************
Version 4.19
************
Release date: 2020-03-05
This release contains a number of bug fixes and new features since the release of pgAdmin4 4.18.
New features
************
Housekeeping
************
Bug fixes
*********
| `Issue #5107 <https://redmine.postgresql.org/issues/5107>`_ - Set proper focus on tab navigation for file manager dialog.

View File

@ -748,8 +748,8 @@ define([
return;
if ($(this).find('.fa-file-text-o').length)
$(this).click();
// If folder then first select and then double click to opn folder
else if ($(this).find('.fa-folder-open').length) {
// If folder then first select and then double click to open folder/drive
else if ($(this).find('.fa-folder-open').length || $(this).find('.fa-hdd-o').length) {
$(this).click();
setTimeout(() => { $(self).trigger('dblclick'); }, 10);
}

View File

@ -346,3 +346,19 @@ table.tablesorter {
outline: $input-focus-border-color auto 5px !important;
}
}
/* Specific to IE11 where we want to highlight the focus on grid/row */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
table.tablesorter {
th:focus,
tr:focus {
border: 2px solid $input-focus-border-color !important;;
}
}
#contents {
li:focus {
border: 2px solid $input-focus-border-color !important;
}
}
}