Unexpected behaviour on panel when Command Line bar shown

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
namvan
Junior Member
Junior Member
Posts: 2
Joined: 2014-08-28, 00:42 UTC

Unexpected behaviour on panel when Command Line bar shown

Post by *namvan »

Steps to reproduce:
1. Enter a path to Command Line section
2. Move away from it to either panel
3. Browse the folder from panel (arrow up or down) and hit Enter to go in
4. It will go to the path specified in Command Line section instead of the focused item in the panel.

Recommended behaviour:
1. When focus is at Command Line and Enter hit --> Browse the location (done)
2. When focus is *not* at Command Line and Enter hit --> do not browse that location but the one at focus on the panel instead.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50547
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This behaviour is intentional - if there is something in the command line, it will be executed when you press Enter.

Why?

For example, you want to open a file with Microsoft Paint. You type mspaint in the command line, scroll to the file, press Ctrl+Enter and then Enter. You would expect that mspaint is launched with the file now (=the command line is executed), not that the file itself is launched with the default program.
Author of Total Commander
https://www.ghisler.com
User avatar
Dalai
Power Member
Power Member
Posts: 9966
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

If you need to change the directory while something is in the command line you can use Ctrl+PageUp/PageDown.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
namvan
Junior Member
Junior Member
Posts: 2
Joined: 2014-08-28, 00:42 UTC

Post by *namvan »

Thank you for the clarification.
Would it be clearer if the focus moved to the command line? It is a bit confused since the focus it at the folder/file but the command is then executed.

Or in short, Enter could/would do the action for the object at focus
- If the current focus is at file, open it with default
- Focus at Folder, go into it
- Focus at command line, execute the command.

Many thanks.
ghisler(Author) wrote:This behaviour is intentional - if there is something in the command line, it will be executed when you press Enter.

Why?

For example, you want to open a file with Microsoft Paint. You type mspaint in the command line, scroll to the file, press Ctrl+Enter and then Enter. You would expect that mspaint is launched with the file now (=the command line is executed), not that the file itself is launched with the default program.
Post Reply