focused item rewritten
This commit is contained in:
parent
5855c0ea7f
commit
07a315ee1b
@ -228,7 +228,6 @@ public class FilePanel extends JPanel {
|
|||||||
FilePanelTab tab = getCurrentTab();
|
FilePanelTab tab = getCurrentTab();
|
||||||
if (tab != null) {
|
if (tab != null) {
|
||||||
tab.getFileTable().requestFocusInWindow();
|
tab.getFileTable().requestFocusInWindow();
|
||||||
tab.selectLastItem();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -390,8 +390,7 @@ public class FilePanelTab extends JPanel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!selected) {
|
if (!selected) {
|
||||||
// Clicked on empty area (row < 0 or empty cell in BRIEF): select the last item in the panel
|
// Clicked on empty area (row < 0 or empty cell in BRIEF): focus is requested but selection stays where it was
|
||||||
selectLastItem();
|
|
||||||
}
|
}
|
||||||
repaint();
|
repaint();
|
||||||
updateStatus();
|
updateStatus();
|
||||||
@ -515,8 +514,7 @@ public class FilePanelTab extends JPanel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!selected) {
|
if (!selected) {
|
||||||
// Clicked on empty area of the table: select the last item
|
// Clicked on empty area of the table: focus is requested but selection stays where it was
|
||||||
selectLastItem();
|
|
||||||
// For empty area, we MUST consume the event to prevent JTable from clearing selection
|
// For empty area, we MUST consume the event to prevent JTable from clearing selection
|
||||||
e.consume();
|
e.consume();
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user