XMTRANSLATEKEY(3)
π NAME π
XmTranslateKey β the default keycode-to-keysym translator, bestie. that's literally her whole job π
β¨ SYNOPSIS β¨
#include <Xm/Xm.h>
void XmTranslateKey(
Display *display,
KeyCode keycode,
Modifiers modifiers,
Modifiers *modifiers_return,
KeySym *keysym_return);
π DESCRIPTION π
okay so. XmTranslateKey is THE default XtKeyProc translation procedure for Motif applications β like, the blueprint one, the og, the main character. she takes a keycode plus some modifiers and hands you back the keysym that goes with them. no cap, that's it, that's the vibe check. β¨
she's got two main purposes and both of them are iconic:
- letting brand-new translators with expanded functionality get the default Motif keycode-to-keysym translation on top of whatever extra stuff they add π¦
- reinstalling the default translator, periodt π
the way this works is: this function is what makes keysyms defined by the Motif virtual bindings usable when an application needs its own XtKeyProc installed. so you're not losing the default behavior, you're justβ¦ layering. obsessed. π
now the parameters, one by one, because we don't skip a single one in this house:
displayβ specifies the display that thekeycodeis from πkeycodeβ specifies thekeycodeto translate π₯modifiersβ specifies the modifier keys to be applied to thekeycodeπmodifiers_returnβ specifies a mask of the modifier keys actually used to generate the keysym. and yes, bestie, that's an AND ofmodifiersand any default modifiers applied by the currently registered translator π«Άkeysym_returnβ specifies a pointer to the resulting keysym π«
πΈ RELATED πΈ
and that's the whole page, mwah π this one came straight outta the XmTranslateKey(library call) manual, so if you see that footer floating around somewhere, that's her, that's the source, that's the version-and-date energy, bye bestie πβ¨
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms