PDA

View Full Version : Focus bug when displaying "stop_box"



Anders Ohrt
4-Jun-2007, 06:20 AM
I noticed that if I do something that makes the "stop_box" appear (easiest
was pressing F8,F7 to get a "Not found"), the <input> below the "mask" still
has the focus so I can write, find, etc, even though everything looks modal.
It should be easily fixed by setting the focus to something in the stop_box,
maybe adding an "OK" button?

// Anders

Edwin van der Velden
4-Jun-2007, 06:42 AM
Thanks for reporting, this is a known bug as well as other issues with the
custom dialog alerts, some changes that will (probably) be made for the next
release are:

-adding of alert queing, instead of displaying all alerts immediatly in
which case they stack on top of each other showing the last alert first it
will be limited to displaying a single alert until it's closed and the next
alert is displayed.

-overwriting of the standard alert no longer is done by default, meaning you
will get the ugly grey standard alert by default. This will be done because
there is no way to mannualy pause the executing of the script. This will
result in the alert being displayed showing while the script execution
processed to a way differnt location. The standard alert will pause the
script execution as soon as it's triggered and you know at which point of
the script you are, which makes it easier for debugging. You can use the
dialog alerts by calling browser.gui.alert or by overwriting the standard
alert function yourself if you wish in the same way as is done now by
default in Browser.js

-move the focus elsewhere, like the ok button you suggested and we had
already thought of ourselves, an alert is expected to have an ok button
anyways

-Edwin


"Anders Öhrt" <Anders.Ohrt@berendsen.se> wrote in message
news:6gg9cpppHHA.5572@dacmail.dataaccess.com...
>
> I noticed that if I do something that makes the "stop_box" appear (easiest
> was pressing F8,F7 to get a "Not found"), the <input> below the "mask"
> still has the focus so I can write, find, etc, even though everything
> looks modal. It should be easily fixed by setting the focus to something
> in the stop_box, maybe adding an "OK" button?
>
> // Anders
>