elementary / elementary/files

Rubberband selection does not end if view loses focus due to e.g. `<Ctrl>f` pressed

Open
#2,253 0 comments 0 reactions 0 assignees View on GitHub
Priority: Low
Dominant language
Vala
Stars
365
Forks
82
Avg merge
4d 2h
Merged PRs (30d)
3

Description

### What Happened?

While rubberband selection was in progress the shortcut `f` was pressed. On releasing the primary button to end selection, the selection rectangle remained on the screen. If `` was then pressed to return focus to the view then moving the pointer continued rubberband selection even though the primary button was no longer pressed. Pressing `` again ended rubberbanding.

### Steps to Reproduce

1. Hold down the primary button and drag the pointer to start rubberbanding
2. Press `f`
3. Release the primary button
4. Observe grey rectangle remains
5. Press ``
6. Move pointer
7. Observe rubberband selection continue
8. Press ``
9. Observe rubberband ends

### Expected Behavior

Rubberband selection ends if view loses focus.

### OS Version

7.x (Horus)

### Software Version

Latest release (I have run all updates)

### Log Output

_No response_

### Hardware Info

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.