"Clipboard PASTE USESEL" not working on folder background from a button or hotkey

Hello,

pasting with Clipboard PASTE USESEL on the folder background only works from the context menu. Using the button or Ctrl+V does not work on the folder background.

Dopus has been reinstalled. Only USESEL was added to the past (Ctrl+V) button.

Looks like you're specifying USESEL in a situation where nothing is selected?

Yes. But pasting is working with the default context menu and it uses USESEL without selecting a file or folder.

That menu may use the folder tree's selection if the file display has no selection, but I'm not sure the same will happen if the file display's context menu is used.

It doesn't really make sense to have USESEL in a command in the file display background menu.

1 Like

Sorry, I forgot the context menu for the background display has its own entry for pasting.

But how to achieve this?

@if: folder background has focus
Clipboard PASTE
@if: file (an archive for example) or folder is selected
Clipboard PASTE USESEL

Try

Clipboard PASTE{=selitems > 0 ? " USESEL" : ""=}

If you want to check focus, try

{=IsChecked("Set FOCUS=filedisplay")=}
2 Likes

Thanks!

Sorry, that was a bit too brief, I admit.

The first line in your code won't do anything.

You'd need to use just

Clipboard PASTE{=IsChecked("Set FOCUS=filedisplay") ? "" : " USESEL"=}

The two lines are not equivalent, you need to check which one works best for you. Or logically combine them :slight_smile:

How to check? Prefix them with @output: and safely click away.

3 Likes