Last modified on 13 November 2012, at 10:43

REBOL Programming/unfocus

USAGE:Edit

UNFOCUS 

DESCRIPTION:Edit

Removes the current key event focus.

UNFOCUS is a function value.

SOURCE CODEEdit

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