We have an issue where the right-click menu for an FNCGrid appears, and then immediately disappears, which is a problem for our application development. I have attached the following demonstration project to illustrate this issue. We have included a video showing the behaviour as well.
Here is how to replicate the issue in our demonstration project:
Click the button labelled “click to fire popup”.
Click on any cell to select the cell, but do not click again to enter edit mode. Then right-click, and the right-click menu will show without any issues. The video shows this happening a few times.
Now, click on a cell twice, to enter cell editing mode (so that a blinking claret appears).
Now, click out of that cell to select any other cell (but don’t click twice - that is, do not enter editing mode).
Now, try to right-click. The right-click menu will appear but disappear immediately, rendering it non-usable. The video shows this toward the end.
Note that in our testing, we have found that this only occurs on Mac OS using Chrome and Chrome-engine browsers (like MS Edge). We have found that on Windows OS, the issue does not occur. We realize that Mac OS may represent a potentially smaller use audience, but we hope that you can identify and fix this issue in timely fashion, irrespective.
Can you try and comment CaptureEx in WEBLib.TMSFNCCustomGrid.pas, rebuild your application and see if that helps?
procedure TTMSFNCCustomGrid.HandleMouseDown(Button: TTMSFNCMouseButton; Shift: TShiftState; X,
Y: Single);
...
if CanFocus then
SetFocus;
// CaptureEx;
if not (Button = {$IFNDEF WEBLIB}TTMSFNCMouseButton.{$ENDIF}mbLeft) then
Exit;
Unfortunately it's difficult to pinpoint the exact cause. On Safari, it's not reproducible, only on Chrome and only on macOS. Seems to be browser dependent. We'll continue investigation.