Handbook
Glossary
ungrab-input ( gadget -- )
Vocabulary
ui
.
gadgets
.
worlds
Inputs
gadget
a
gadget
Outputs
None
Word description
Sets the
world
containing
gadget
not to grab mouse and keyboard input while focused.
See also
grab-input
Definition
USING:
accessors
kernel
ui.backend
;
IN:
ui.gadgets.worlds
:
ungrab-input
( gadget -- )
find-world
dup
grab-input?>>
[
f
>>grab-input?
dup
focused?>>
[
handle>>
(ungrab-input)
]
[
drop
]
if
]
[
drop
]
if
;