📄 xungrabkey.html
字号:
<HTML><HEAD><TITLE>Xlib Programming Manual: XUngrabKey</TITLE></HEAD><BODY><H1 ALIGN=center>XUngrabKey</H1><H2>Syntax</H2><!.IN "Key" "ungrabbing"><!.IN "Ungrabbing" "keys"><!.IN "XUngrabKey" "" "@DEF@"><CODE><PRE>XUngrabKey(<B>display</B>, <B>keycode</B>, <B>modifiers</B>, <B>grab_window</B>) <A HREF="../display/opening.html#Display">Display</A> *<B>display</B>; int <B>keycode</B>; unsigned int <B>modifiers</B>; Window <B>grab_window</B>;</PRE></CODE><H2>Arguments</H2><TABLE><TR><TD> <B>display</B><TD> Specifies the connection to the X server.<TR><TD> <B>keycode</B><TD> Specifies the KeyCode or<B>AnyKey</B>.<TR><TD> <B>modifiers</B><TD> Specifies the set of keymasks or<B>AnyModifier</B>.The mask is the bitwise inclusive OR of the valid keymask bits.<TR><TD> <B>grab_window</B><TD> Specifies the grab window.</TABLE><H2>Description</H2>The<B>XUngrabKey()</B>function releases the key combination on the specified window if it was grabbedby this client.It has no effect on an active grab.A modifiers of<B>AnyModifier</B>is equivalent to issuingthe request for all possible modifier combinations(including the combination of no modifiers).A keycode argument of<B>AnyKey</B>is equivalent to issuing the request for all possible key codes.<P><B>XUngrabKey()</B>can generate<B>BadValue</B>and<B>BadWindow</B> errors.<H2>Diagnostics</H2><TABLE><TR><TD><B>BadValue</B><TD> Some numeric value falls outside the range of values accepted by the request. Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives can generate this error.<TR><TD><B>BadWindow</B><TD>A value for a Window argument does not name a defined Window.</TABLE><H2>See also</H2><B><A HREF="XGrabKey.html">XGrabKey()</A></B>,<B><A HREF="XAllowEvents.html">XAllowEvents()</A></B>,<B><A HREF="XGrabButton.html">XGrabButton()</A></B>,<B><A HREF="XGrabKeyboard.html">XGrabKeyboard()</A></B>,<B><A HREF="XGrabPointer.html">XGrabPointer()</A></B>,"<A HREF="keyboard-grabbing.html">Keyboard Grabbing</A>".<HR><ADDRESS><A HREF="http://tronche.com/">Christophe Tronche</A>, <A HREF="mailto:ch.tronche@computer.org">ch.tronche@computer.org</A></ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -