diff options
author | marc_culler <marc.culler@gmail.com> | 2020-05-05 16:03:41 (GMT) |
---|---|---|
committer | marc_culler <marc.culler@gmail.com> | 2020-05-05 16:03:41 (GMT) |
commit | 2ba6bd562b5ebdda1b68d6ea1e00defe7486801f (patch) | |
tree | e91e8e4bbf7f74308b7438dfca63d7074578e61c /macosx/tkMacOSXKeyboard.c | |
parent | c63f235278a78cc9b3f29c872814be8d1553fabf (diff) | |
download | tk-2ba6bd562b5ebdda1b68d6ea1e00defe7486801f.zip tk-2ba6bd562b5ebdda1b68d6ea1e00defe7486801f.tar.gz tk-2ba6bd562b5ebdda1b68d6ea1e00defe7486801f.tar.bz2 |
More comment edits
Diffstat (limited to 'macosx/tkMacOSXKeyboard.c')
-rw-r--r-- | macosx/tkMacOSXKeyboard.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/macosx/tkMacOSXKeyboard.c b/macosx/tkMacOSXKeyboard.c index d7c0064..1b8668e 100644 --- a/macosx/tkMacOSXKeyboard.c +++ b/macosx/tkMacOSXKeyboard.c @@ -388,8 +388,8 @@ KeyDataToUnicode( * * This is a stub function which translates from the keycode used in an * XEvent to a numerical keysym. On macOS, the display parameter is - * ignored and only the the virtual keycode stored in bits 24-31 is - * used. + * ignored and only the the virtual keycode stored in the .virtual bitfield + * of a MacKeycode.v. * * Results: * Returns the corresponding numerical keysym, or NoSymbol if the keysym @@ -591,11 +591,13 @@ XStringToKeysym( * * This is a stub function which converts a numerical keysym to the * platform-specific keycode used in a KeyPress or KeyRelease XEvent. + * For macOS the keycode is an unsigned int with bitfields described + * in the definition of the MacKeycode type. * * Results: * * A macOS KeyCode. See the description of keycodes at the top of this - * file and in tkMacOSXPrivate.h. + * file and the definition of the MacKeycode type in tkMacOSXPrivate.h. * * Side effects: * None. |