Improvement on setFocusTo

Features wanted...
Post Reply
terrytw
Posts: 121
Joined: 03 Mar 2023 03:37

Improvement on setFocusTo

Post by terrytw »

Currently, when I perform middle click on the tree, a tab will open in the background. When I click on the newly opened tab(or use hotkey ctrl+tab), the focus is still on tree, not automatically switched to the list.

I have set setFocusTo to 15, still the same.

I think when I actively click on (or use hotkey ctrl + tab to switch to) the newly opened tab, the intention is clear that I want to interact with this particular tab, not the tree anymore.

Wish that there could be an improvement on this, thank you!

admin
Site Admin
Posts: 64825
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Improvement on setFocusTo

Post by admin »

So you'd like to see a new value for setFocusTo:
16 = Tab > List

Or is it generally expected that the list should be focused after actively switching to a new tab?

highend
Posts: 14560
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Improvement on setFocusTo

Post by highend »

I'd vote for the additional value for the tweak, maybe I have to check via scripting if tabs have focus...
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 64825
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Improvement on setFocusTo

Post by admin »

BTW, the current behavior began here:

Code: Select all

v18.80.0004 - 2018-03-09 20:54
    * Tabs: When switching tabs the focus now stays in the Tree when it was 
      there before. Before, the focus always was set to the List.
Unfortunately, I haven't made a note of the reason for this exception. Probably something in the forum.

Note that in all other cases, switching tabs will set the focus to the list.

terrytw
Posts: 121
Joined: 03 Mar 2023 03:37

Re: Improvement on setFocusTo

Post by terrytw »

admin wrote: 01 Feb 2025 11:32 So you'd like to see a new value for setFocusTo:
16 = Tab > List

Or is it generally expected that the list should be focused after actively switching to a new tab?
I would definitely like a tweak option.

The default behavior is a different question IMO. I don't have a strong opinion as to which one should be the default. As long as I'm able to set it to my liking.

But from a theoretical point of view, I think focusing on the list after tab switch does make a lot of sense. I will provide one example, and the main reason why I want this tweak: my workflow often involves middle click a tab, switch to it, then use keyboard to quickly looking for a folder (like typing "xy" to finde xyplorer's folder), but right now it will switch to a tree item starting with "xy". I hope I have made myself clear.
Last edited by terrytw on 01 Feb 2025 16:35, edited 1 time in total.

admin
Site Admin
Posts: 64825
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Improvement on setFocusTo

Post by admin »

Okay, SetFocusTo=16 (or SetFocusTo AND 16) should work in v26.80.0303. Just patched the release notes (I had forgotten to mention it):

Code: Select all

v26.80.0303 - 2025-02-01 15:49
    + Tweak SetFocusTo enhanced:
        SetFocusTo=(bit field)
                   16 = Tab > List

terrytw
Posts: 121
Joined: 03 Mar 2023 03:37

Re: Improvement on setFocusTo

Post by terrytw »

admin wrote: 01 Feb 2025 16:35 Okay, SetFocusTo=16 (or SetFocusTo AND 16) should work in v26.80.0303. Just patched the release notes (I had forgotten to mention it):

Code: Select all

v26.80.0303 - 2025-02-01 15:49
    + Tweak SetFocusTo enhanced:
        SetFocusTo=(bit field)
                   16 = Tab > List
Thank you! This has been itching me for like a year and I finally decided to take it to the forum haha. Thanks for it!

terrytw
Posts: 121
Joined: 03 Mar 2023 03:37

Re: Improvement on setFocusTo

Post by terrytw »

terrytw wrote: 01 Feb 2025 16:36
admin wrote: 01 Feb 2025 16:35 Okay, SetFocusTo=16 (or SetFocusTo AND 16) should work in v26.80.0303. Just patched the release notes (I had forgotten to mention it):

Code: Select all

v26.80.0303 - 2025-02-01 15:49
    + Tweak SetFocusTo enhanced:
        SetFocusTo=(bit field)
                   16 = Tab > List
Thank you! This has been itching me for like a year and I finally decided to take it to the forum haha. Thanks for it!
I just tried the new version, the focus only shifts when I click on the tab, but if I use hotkey, it is still locked on the tree. Can you please fix this? Thanks a lot! I use hotkey all the time.

admin
Site Admin
Posts: 64825
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Improvement on setFocusTo

Post by admin »

Sure, next beta.

terrytw
Posts: 121
Joined: 03 Mar 2023 03:37

Re: Improvement on setFocusTo

Post by terrytw »

admin wrote: 05 Feb 2025 11:39Sure, next beta.
Just tried latest beta (26.80.403), happy to report that it is fixed! Thank you!

Post Reply