Output form + highlited records + right click

A window displays a series of records thru an old style output form.
Records get highlited continuously or dyscontinuously.

An operation is launched with a right click on marked records

Unfortunately, the right click changes the highlited records :twisted:

Does someone have a workaround to avoid this problem?