NAME
XtUngrabKey − cancel a passive key grab.
SYNOPSIS
void XtUngrabKey(widget, keycode, modifiers)
Widget widget;
KeyCode keycode;
Modifiers modifiers;
Inputs
widgetSpecifies the widget in whose window the key was grabbed.
keycodeSpecifies the keycode to be ungrabbed.
modifiersSpecifies the modifiers to be ungrabbed.
AVAILABILITY
Release 4 and later.
DESCRIPTION
XtUngrabKey() cancels a passive grab on the specified keycode/modifiers combination for widget w. If w is realized, XtUngrabKey() calls XUngrabKey() specifying the widget’s window as the ungrab window and passing the remaining argument unmodified. If the widget is not realized XtUngrabKey() removes the deferred XtGrabKey() request, if any, for the specified widget, keycode and modifiers.
The keycode argument is the keycode of the key you want to ungrab, or the special value AnyKey which is equivalent to issuing the request for all possible nonmodifier key codes.
The modifiers argument is a bitwise OR of one or more of the following symbols: ShiftMask, LockMask, ControlMask, Mod1Mask, Mod2Mask, Mod3Mask, Mod4Mask, Mod5Mask. The special value AnyModifier is also allowed; using it is equivalent to issuing the ungrab button request for all possible modifier combinations (including no modifiers).
XtUngrabKey() has no effect on an active grab.
See XtGrabKey() for more details on passive key grabs.
USAGE
Most applications will never need to issue a passive grab. XtAddGrab() (called by XtPopup()) can be used to implement modal popups inside an application, and XtSetKeyboardFocus() can be used to redirect keyboard focus within an application. Neither function actually issues a grab, and so does not interrupt event processing by other clients.
STRUCTURES
The Modifiers and KeyCode types are defined as follows: typedef unsigned int Modifiers; typedef unsigned char KeyCode;
SEE ALSO
XtAddGrabUNIX SYSTEM V/68, XtGrabButtonUNIX SYSTEM V/68, XtGrabKeyUNIX SYSTEM V/68, XtGrabKeyboardUNIX SYSTEM V/68, XtGrabPointerUNIX SYSTEM V/68, XtSetKeyboardFocusUNIX SYSTEM V/68, XtUngrabButtonUNIX SYSTEM V/68, XtUngrabKeyboardUNIX SYSTEM V/68, XtUngrabPointerUNIX SYSTEM V/68.