mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-16 10:20:50 +00:00
Fix using Enter key to open folder a when we've the focus in the filename entry
This commit is contained in:
parent
8ba0ea4519
commit
dbae196f2d
@ -481,7 +481,11 @@ again:
|
||||
enter_folder = folder;
|
||||
}
|
||||
else if (fn.empty()) {
|
||||
if (m_type != FileSelectorType::OpenMultiple) {
|
||||
IFileItem* selected = m_fileList->selectedFileItem();
|
||||
if (selected && selected->isBrowsable())
|
||||
enter_folder = selected;
|
||||
else if (m_type != FileSelectorType::OpenMultiple ||
|
||||
m_fileList->selectedFileItems().empty()) {
|
||||
// Show the window again
|
||||
setVisible(true);
|
||||
goto again;
|
||||
|
Loading…
x
Reference in New Issue
Block a user