summaryrefslogtreecommitdiff
path: root/src/lib/elm_focusable.eo
blob: d868c6f7a26481cfe0195922490a3b9c71fc46be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
interface Elm.Focusable {
    [[Implemented by objects which may be focusable]]
    legacy_prefix: null;
    methods {
        focusable {
            [[returns true if this object is focusable]]
            return : bool;
        }
        focus {
            [[returnds if this object is currently focused]]
            return : bool;
        }
    }
    events {
        focus,on; [[called when the focus is added to this object]]
        focus,off; [[called when the focus is remved from this object]]
    }
}