Skip to content

Weird focus state after scrolling in Quick view #4941

@egmontkob

Description

@egmontkob

Is there an existing issue for this?

  • I have searched the existing issues

Midnight Commander version and build configuration

4.8.33-541-g885426ac7

Operating system

Linux

Is this issue reproducible using the latest version of Midnight Commander?

  • I confirm the issue is still reproducible with the latest version of Midnight Commander

How to reproduce

Cursor is in the left panel. Left panel has regular file listing.

F9 -> Right -> Quick view.

Scroll with the mouse wheel over the Quick view panel. The button bar switches to the viewer's actions (e.g. F2 UnWap, F4 Hex, F5 Goto). Yet the file in the left panel still has the highlight.

Some actions, e.g. F4, work in the right panel's viewer (switches to hex mode).

Some other actions, e.g. Up/Down arrows, work in the left panel's file listing (move one file up/down).

I find this very confusing. Feels like there's two cursors, or two focused widgets, and it depends on the action which one will take it.

I think there should only be one focused thing, and all the actions should correspond to that.

I don't think that a mouse scrolling should move the focus to the quick viewer (generally, not just in mc, scrolling doesn't focus that widget). But if we decide to focus it then it should be communicated clearly, by removing the current file's highlight from the left panel, un-emphasizing the directory in its top-left corner, and making subsequent arrows or similar keys also function on the Quick view.

Expected behavior

.

Actual behavior

.

Additional context

No response

Metadata

Metadata

Assignees

Labels

area: coreIssues not related to a specific subsystemprio: mediumHas the potential to affect progress

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions