summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXPrivate.h
diff options
context:
space:
mode:
authorculler <culler>2020-05-12 13:21:44 (GMT)
committerculler <culler>2020-05-12 13:21:44 (GMT)
commit4f9c5061a9037f3b854ae6046f5454578abc5707 (patch)
tree7791153896018f927a47d8f7048a5a7bdaec601d /macosx/tkMacOSXPrivate.h
parentdd7e4b7700686259339f93257093efd65cc8b2c5 (diff)
downloadtk-4f9c5061a9037f3b854ae6046f5454578abc5707.zip
tk-4f9c5061a9037f3b854ae6046f5454578abc5707.tar.gz
tk-4f9c5061a9037f3b854ae6046f5454578abc5707.tar.bz2
Deal with the Menu key and possibly other keys that Apple does not use.
Diffstat (limited to 'macosx/tkMacOSXPrivate.h')
-rw-r--r--macosx/tkMacOSXPrivate.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/macosx/tkMacOSXPrivate.h b/macosx/tkMacOSXPrivate.h
index 384a0df..711569f 100644
--- a/macosx/tkMacOSXPrivate.h
+++ b/macosx/tkMacOSXPrivate.h
@@ -183,9 +183,12 @@ typedef union MacKeycode_t {
* A special character is used in the keycode for simulated modifier KeyPress
* or KeyRelease XEvents. It is near the end of the private-use range but
* different from the UniChar 0xF8FF which Apple uses for their logo character.
+ * A different special character is used for keys, like the Menu key, which do
+ * not appear on Macintosh keyboards.
*/
#define MOD_KEYCHAR 0xF8FE
+#define UNKNOWN_KEYCHAR 0xF8FD
/*
* Structure encapsulating current drawing environment.