REBOL Document

Unfocus - Function Summary


Summary:

Removes the current key event focus.

Usage:

unfocus

Description:

Removes the focus from the current focal face. The face was previously specified with the FOCUS function to set it as the focal point for input events. If the face had text highlighted, the highlighting is cleared.


    out: layout [
        h2 "Input your info:"
        f1: field
        button "Unfocus" [unfocus]
        button "Close" [unview]
    ]
    focus f1
    view out

If UNFOCUS is called when there is no focal face, it will be ignored.

Related:

focus - Focuses key events on a specific face.


<Back | Index | Next>

Copyright 2004 REBOL Technologies