Command to "press Enter" open folder/file

Which command can I use to simulate a "press Enter" key, i.e. open whatever items are currently selected?

I've found the open folder part with Go FROMSEL, but am missing the second part where the same command over a file would open file

(also, would be nice if ALL keys, including Enter, were present in the Keys customization list, then I could just add an extra key there)

FileType ACTION=shellex or FileType ACTION=dblclk are probably what you want.

this overrides opened folder (so if Fd1 and Fd2 are selected, I see Fd1 opened first, then overriden by Fd2, so Fd1 is lost)

this opens 2 folders in an adjacent tab and at the end of the tabs (weird, why not in two adjacent tabs, also current tab remains)

So it's still different from Enter, which opens one folder in the same tab and another folder in a new Window, which is actually also not what I want (but maybe this is driven by another config option?)

What I'd like to have is for the

  • first folder to open in the same tab and if multiple folders are selected,

  • the subsequent folders should open in adjacent tabs (not in new lister windows)

(I have open new tabs next to the active tab setting activated)

open command opens only the first folder (and it loses item selection after opening files)

If you want a hotkey which does exactly the same as Enter, you could have it send a keypress of the Enter key:

function OnClick(clickData)
{
	var wsh = new ActiveXObject("WScript.Shell");
	wsh.SendKeys("{ENTER}");
}

Not really unless I can get rid of it openning a new Lister Window on multiple folder selection

Also, this script doesn't work with modifiers as it propagates those modifiers to the SendKeys. Is there a way to "swallow" some modifiers, specifically if I bind to Shift+I, the result should not be Shift+Enter but just enter (other modifiers should continue to pass through)

So you don’t just want an alternative hotkey for Enter anymore?

I do, the thing you quoted would allow me adding this alternative in the simples way possible - by adding an extra keybind in the existing list

It might be possible with some scripting, but is probably going to be quite tricky to do exactly what you want.

Why do you want to use Shift + I instead of just pushing Enter?

Because I is a much more convenient key, it's right there near a strong finger, and I'm using it in various other apps as a substitute (with or even without a modifier depending on an app and function)