Is there a way to make SketchUp shortcuts work when WebDialog is open?
In SketchUp 2016 if I have focus on my plugin WebDialog shortcuts are not working but if I click the SketchUp main window (where the model is build) they work.
Is there a quick way to propagate the shortcuts thru webdialog?
does your WD need focus?
some more details of what it does could help answer your query…
my question should have probably been expand on as I refer to the same scenario as you…
does your WD need focus to receive Key events itself?
i.e. does it require ‘text input’ or rely on it’s own ‘Shortcut keys’?
If not, it is possible to create a WebDialog that never holds focus if it’s not required, i.e. similar to the ‘Instructor’ dialog…
click events can be manipulated to function, but WD mouseover and key events can’t…
these use to work on a OS X, but not to my knowledge on Windows…
my current ‘cross platform’ workaround is to run a second dummy webDialog…
My WD comunicates with nodejs server, if WD receives a message I lose focus from SketchUp and the shortcuts are not working until I click again on SketchUp.
I think I found the issue, after every message received by WD I resize it which cause change of focus.
The fix will be to set focus to SketchUp after WD resize.