FarManager icon indicating copy to clipboard operation
FarManager copied to clipboard

repositioning the context menu

Open AVBL opened this issue 1 year ago • 9 comments

Far Manager version

3.0.6111.0

OS version

10.0

Other software

No response

Steps to reproduce

  1. Press right mouse click on file in panel.
  2. Select Отправить..
  3. Press Esc.

Expected behavior

I should return to the original context menu, located where it was.

Actual behavior

The menu window is redrawn in a different place (it seems to somehow depend on the current position of the mouse cursor).

AVBL avatar Dec 06 '23 12:12 AVBL

I cannot reproduce it, but I believe you just did not mention your EMenu plugin configuration. I have a graphical context menu turned on (at mouse position).

yegor-mialyk avatar Dec 06 '23 16:12 yegor-mialyk

I don't remember which hotkey to configure plugins with. :( Scrrenshots:

  1. Right-click on file image
  2. Select Отправить (by mouse, of course) image
  3. Press Esc image

AVBL avatar Dec 06 '23 20:12 AVBL

You can change settings to show a menu always in the center, AltShiftF9 -> EMenu:

┌ Menu position ─────────────────────────┐
│ ( ) At the mouse cursor                │
│ (•) In the center of FAR window        │
└────────────────────────────────────────┘

yegor-mialyk avatar Dec 06 '23 21:12 yegor-mialyk

Ah, yes, Alt-Shift-F9. EMenu config: image

AVBL avatar Dec 06 '23 21:12 AVBL

It seems that the setting of the menu position is completely ignored - whatever option you choose there, the window always floats. In any case, in theory, this option should affect the position of the newly called menu, without causing the menu to change position after returning from the submenu.

AVBL avatar Dec 06 '23 21:12 AVBL

try to change [?] Display GUI menu to [ ] Display GUI menu and try again

yegor-mialyk avatar Dec 06 '23 22:12 yegor-mialyk

Nothing changed (menu continues to float).

AVBL avatar Dec 06 '23 22:12 AVBL

Oops I was pressing Apps key instead of mouse, sorry :) BTW the help says for "Menu position" is that it is "GUI menu position" actually

yegor-mialyk avatar Dec 06 '23 22:12 yegor-mialyk

It seems that the setting of the menu position is completely ignored - whatever option you choose there, the window always floats.

I tried to retest it. If you select the "in the center of the window" setting, then when you open the context menu through the list of plugins (F11 - E), the menu actually appears in the center of the window and after returning from the submenu, the main menu also appears in the center.

But I call up the context menu all the time by clicking the mouse, and in this case the menu appears under the cursor regardless of the position setting relative to the window. I think it's the right thing to do. The bug I'm reporting is that after returning from the submenu, the main context menu should be redrawn in the same place where it originally appeared, and not under the mouse cursor or in the center of the window.

AVBL avatar Dec 06 '23 22:12 AVBL