alstrup / arctic

Automatically exported from code.google.com/p/arctic
0 stars 0 forks source link

Keyboard support/focus in dialogs #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We really miss the keyboard support now - we need some kind of input
focus/whatever like that.

Original issue reported on code.google.com by michael....@gmail.com on 22 Oct 2007 at 10:29

GoogleCodeExporter commented 9 years ago
The closest there is currently is the stuff in ArcticDialogManager:

Here you can register a function which is called whenever an arctic dialog is 
shown,
and when *all* dialogs are hidden.

You can also test if the mouse is inside an Arctic dialog.

Other than that, use something like:

#if flash9
var noFocus = flash.Lib.current.stage.focus == null;
#else flash
var noFocus = flash.Selection.getFocus() == null;
#end

to check that nothing has focus.

Finally, TextInput's constructed by arctic provide a function that can test 
whether
it has focus or not.

But of course, better focus handling in ArcticDialogs and views would be nice.

Original comment by asgerals...@gmail.com on 22 Oct 2007 at 10:44