7019963: The goto parent directory button doesn't operate in JFileChooser
Reviewed-by: alexp
This commit is contained in:
parent
539b623427
commit
c85b06f816
@ -810,10 +810,7 @@ public class BasicFileChooserUI extends FileChooserUI {
|
||||
putValue(Action.ACTION_COMMAND_KEY, FilePane.ACTION_CHANGE_TO_PARENT_DIRECTORY);
|
||||
}
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
Component focusOwner = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner();
|
||||
if (focusOwner == null || !(focusOwner instanceof javax.swing.text.JTextComponent)) {
|
||||
getFileChooser().changeToParentDirectory();
|
||||
}
|
||||
getFileChooser().changeToParentDirectory();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user