Focus switch from Tree>List with SetFocusTo tweak - mouse left-click works, keyboard Enter doesn't

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
JJR
Posts: 7
Joined: 27 May 2011 09:15

Focus switch from Tree>List with SetFocusTo tweak - mouse left-click works, keyboard Enter doesn't

Post by JJR »

Hi all,

I'm personalizing XYPlorer for a 100% keyboard workflow.

One thing I can't solve is automatically switching focus from the Tree to the List after hitting Enter on a folder in the Tree.

I have SetFocusTo=7 in my .ini, and when I hit Enter on an item in the Catalog or on a typed/selected address in the Address Bar, focus switches automatically to the List, which is awesome.

However when the Tree is focused, and I navigate with left/right/up/down keys then hit Enter, focus doesn't switch to the List but stays on the Tree. I then have to switch focus manually with a shortcut (#1016 Miscellaneous | Focus Functions | Focus List) - default binding Control+Alt+L, customized to alphanum 2.

This Tree>List focus behaviour only occurs with keyboard Enter. Mouse left click on a folder in the Tree switches focus to the List as expected.

I also have Tree and Catalog focus bound to alphanum 1 and 3 and these three shortcuts are very useful in other contexts, but it would be great if I could bypass this particular Tree>List focus step.

Can anyone inform me of a way to make Enter behave the same way as a mouse left click in this context?

Thanks :)


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

Re: Focus switch from Tree>List with SetFocusTo tweak - mouse left-click works, keyboard Enter doesn't

Post by admin »

JJR wrote: ↑19 Feb 2022 16:59 Can anyone inform me of a way to make Enter behave the same way as a mouse left click in this context?
It's not possible.

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

Re: Focus switch from Tree>List with SetFocusTo tweak - mouse left-click works, keyboard Enter doesn't

Post by highend »

You could achieve that with AutoHotkey...

E.g.:
_XYplorer - Enter in tree changes focus.xys
Rename the extension to ahk^^
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

Post Reply