grab_keyboard/6 grab_keyboard(+Window, +OwnerEvents,
+PointerMode, +KeyboardMode,
+Time, -GrabStatus)
Actively grabs control of the keyboard and
generates focus_in and focus_out events.
Window is the ProXL window to which events will be reported while the grab is in effect.
OwnerEvents is one of:
true
false
PointerMode controls further processing of pointer events:
async
sync
allow_events/[1,2,3] or the pointer grab is released.
KeyboardMode controls further processing of keyboard events:
async
sync
allow_events/[1,2,3] or the keyboard grab is released.
Time is a timestamp in milliseconds or current_time.
GrabStatus is unified by grab_keyboard/6 with one of:
success
already_grabbed
invalid_time
not_viewable
frozen