Weird bug with WebDialog and Flash
-
Hello there.
I've just come across a really strange problem with the SketchUp webdialog and flash applications. I can link a web dialog to my flash based gui html page and at first it appears to work correctly. The problem, however, is that the return key does not seem to work within the webdialog at all. All other keyboard keys work fine but the return key is completely ignored (as if its blocked). I've tried various tests including putting Keylisteners into my flex app to see what keys are recognised (only the esc and return keys aren't). I've also tried creating a new script that only opens a web dialog with a link to an external flash page and I get the same problem with this (so it doesn't appear to be a problem with my code). The external test page I used was: http://examples.adobe.com/flex2/inproduct/sdk/explorer/explorer.html
I don't know if anyone has come across this before, but it is a real problem for me as I have built the gui for my plugin using Adobe Flex and I have some textareas that I need the users to fill out (which require multi-line input) so not having the return key is a real problem. Using normal HTML textareas seems to work fine and loading up Flex pages in normal Internet Explorer also seems to work fine.
Any help would be most appreciated.
Best Regards,
Malcolm Murray -
Mocathe,
This problem is somehow familiar to me. It's been a while since I did serious flash work in webdialogs, but I do recall having a problem like this. But what I can't remember is what I did to fix it.
A few questions that'll help me help:
-
Are you on a Mac or PC? If on a PC, what version of IE do you have installed?
-
If you bring up a basic HTML form, does the enter key work? Or is it only flash text entry?
-
Do you see the same problem regardless of what tool you have selected in SU?
Cheers,
-
-
Hi there,
This problems appears on a PC, I haven't tried it on a Mac yet as there are a couple of Flash security issues that I need to resolve before it loads on the Mac. I'll try it with an external flash site that doesn't need local access though and post my results here.
Basic HTML TextAreas do seem to work fine so that I can enter new lines etc without any issue. It only seems to be with flash text entry and only from within SketchUp. Opening the same page in the normal IE has no problems at all.
I've just tried selecting different tools etc and the problem still seem to be there regardless of the tool selected.
Its really puzzling as to why the enter key would be disabled (the esc key also doesn't appear to work based on the KeyListener test I did) while the other keys work fine.
Thanks for your help, any ideas as to what is causing this would be most welcome.
Thanks,
Malcolm -
Malcolm,
Would you be able to share a minimal script + swf that demonstrates the problem? Then I could load it on my various test setups and see if there's a pattern.
Super-hacky workaround idea: one might be able to set up an onKeyPress event listener at the HTML level, and then pass the captured enter key to flash via javascript. (What I don't remember is if the window even receives key presses when focus is on the Flash movie...)
Cheers,
-
Hi!
I have the same problem with silverlight. The difference is that letter and number keys does not work, but space, backspace, arrow, home and etc. keys work. Does anybody have solution for this? -
Someone?
-
Viskiz,
Unfortunately we haven't yet discovered a reliable workaround for this problem.
I assume you're on the mac as well? Or are you seeing this on PC as well?
-
On Windows, setting <param name="windowless" value="true" /> in your Silverlight object tag (i.e. in your html page) will allow the keyboard to work correctly. The same is not necessary on OSX.
-
I'm on PC.
The problem is solved , thank you, JD Hill!
-
I've just noticed, that the problem still remains with the 'Enter' key. Though it works in IE, but it doesn't if it's opened via Sketchup web dialog. Any ideas?
Advertisement