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

@@ -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);
}