Iâm still trying to get the User experience worked out, before I want to share the code openlyâŚ
basically a button onClick event, sends an action callback to import the skpâŚ
on a mac this ânormallyâ takes three Clicks or a Cmd Click, but varies depending on the dialogs focusâŚ
if not Focused:
the first click focuses the dlg, the second clicks the button and the third focuses the viewport, and in this case, that would place the component blindlyâŚ
A CmdClick however will do exactly what we want and the comp will be attached to the cursorâŚ
if Focused:
it becomes a two click operation, with the same bad outcomeâŚ
CmdClick works like two clicks i.e. badlyâŚ
over at SCF dev forum weâve been looking for a better option for at least six yearsâŚ
this is my latest stab at itâŚ
the ideal for the changing of the SU cursor is to never hold focus on the dlgâŚ
I use a combination of âvanillaâ javascript and ruby to manipulate the âfocusâ between the dialog and the SU viewportâŚ
the âtrickâ will hinder the use of many other âexpectedâ events like tooltips, focus rings, but some may be possible by other meansâŚ
e.g. in this gif, I take advantage on osxâs ability to scroll an âout of focusâ windowâŚ
With your dialog it looks like your using a jQuery image gallery, that would need focus to work and may impede how this worksâŚ
I personally Iâm not a fan of js libraries for most webDialogsâŚ
Is your Extension Commercial?
john