REBOL Programming/unfocus

From Wikibooks, open books for an open world
< REBOL Programming
Jump to: navigation, search

USAGE:[edit]

UNFOCUS 

DESCRIPTION:[edit]

Removes the current key event focus.

UNFOCUS is a function value.

SOURCE CODE[edit]

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]
]