In a file > open dialog the active file is always part of the selection
- Dominant language
- Vala
- Stars
- 365
- Forks
- 82
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 3
Description
### What Happened?
I'm unsure if this is related to files, but I can't think of any other place to report it.
There is a long-standing bug in applications that use the default elementary OS modal for File > Open. The highlighted active file is always added to the selection, even if you drag a box over a series of files that do not include that active file.
For example, here, the folder "api" was selected when opening the dialog, and I drew a box around the files at the bottom:

Now, the "api" folder is part of the selection if I click "open", even if I didn't select it. But the same is true if I select one file, effectively marking it as active, and then drag a box over a set of other files. The file I clicked before will remain part of the selection, even if that's not the intention.
### Steps to Reproduce
1. In an application, choose File > Open
2. Drag a box around several files that do not include the active one
3. CLick Open
### Expected Behavior
When dragging a box around files, the active one should be part of that list—perhaps making the first one dragged around the active one?
### OS Version
7.x (Horus)
### Software Version
Latest release (I have run all updates)
### Log Output
_No response_
### Hardware Info
```
eeeeeeeeeeeeeeeee wout@Framey
eeeeeeeeeeeeeeeeeeeeeee -----------
eeeee eeeeeeeeeeee eeeee OS: elementary OS 7.1 Horus x86_64
eeee eeeee eee eeee Host: Laptop (12th Gen Intel Core) A8
eeee eeee eee eeee Kernel: 6.8.0-40-generic
eee eee eee eee Uptime: 11 days, 5 hours, 43 mins
eee eee eee eee Packages: 2822 (dpkg), 108 (flatpak), 16 (snap)
ee eee eeee eeee Shell: bash 5.1.16
ee eee eeeee eeeeee Resolution: 3000x2000
ee eee eeeee eeeee ee DE: Pantheon
eee eeee eeeeee eeeee eee WM: Mutter(Gala)
eee eeeeeeeeee eeeeee eee Theme: io.elementary.stylesheet.mint [GTK3]
eeeeeeeeeeeeeeeeeeeeeeee eeeee Icons: elementary [GTK3]
eeeeeeee eeeeeeeeeeee eeee Terminal: io.elementary.t
eeeee eeeee CPU: 12th Gen Intel i7-1280P (20) @ 4.700GHz
eeeeeee eeeeeee GPU: Intel Alder Lake-P
eeeeeeeeeeeeeeeee Memory: 22014MiB / 64010MiB
```
Contributor guide
Assessment
This issue has not been assessed yet.