Jump to content

Rebol Programming/unfocus

From Wikibooks, open books for an open world

USAGE:

[edit | edit source]
UNFOCUS 

DESCRIPTION:

[edit | edit source]

Removes the current key event focus.

UNFOCUS is a function value.

SOURCE CODE

[edit | edit source]
unfocus: func [
    "Removes the current key event focus." 
    /local tmp-face
][
    tmp-face: focal-face 
    focal-face: none 
    caret: none 
    unlight-text 
    if tmp-face [show tmp-face]
]