Skip to content

Don't reset selection on mouse clicks, but only on mouse drags #2530

@mc-butler

Description

@mc-butler

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/2530
Reporter vitalif (vitalif@….ru)
Mentions gotar@….pl

By now, mc resets selection on every mouse click. That's very inconvenient as selecting with mouse is usually needed when the you don't want to navigate far away with key presses, and you'll probably not want to navigate back with keys again. But you can't navigate back with mouse as it will reset the selection you've just made.

I think mc must reset selection only if the user starts new one, i.e. drags the mouse. See attached patch please :)


BTW, there was a change in Ctrl-Ins behaviour somewhere between 4.7 and 4.8 - in 4.7 Ctrl-Ins resetted the selection, but now it doesn't. I think it was more convenient when it resetted the selection. Are there any principal arguments? Maybe the behaviour could be restored to original, or selected with an option?

Note

Original attachments:

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues not related to a specific subsystemprio: mediumHas the potential to affect progressver: 4.7.5Reproducible in version 4.7.5

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions