summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXKeyEvent.c
diff options
context:
space:
mode:
authormarc_culler <marc.culler@gmail.com>2020-04-27 01:28:18 (GMT)
committermarc_culler <marc.culler@gmail.com>2020-04-27 01:28:18 (GMT)
commit9baf680ce5583741fa38bb80544776a38b263cee (patch)
treea30931a216633c9ea0a6a296b20fa17d9ce1dd36 /macosx/tkMacOSXKeyEvent.c
parent3d5553c792d681627037b1c7fb47a5884e9fa55d (diff)
downloadtk-9baf680ce5583741fa38bb80544776a38b263cee.zip
tk-9baf680ce5583741fa38bb80544776a38b263cee.tar.gz
tk-9baf680ce5583741fa38bb80544776a38b263cee.tar.bz2
Deal with Apple's Backspace key.
Diffstat (limited to 'macosx/tkMacOSXKeyEvent.c')
-rw-r--r--macosx/tkMacOSXKeyEvent.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/macosx/tkMacOSXKeyEvent.c b/macosx/tkMacOSXKeyEvent.c
index fb75fb6..688d7dd 100644
--- a/macosx/tkMacOSXKeyEvent.c
+++ b/macosx/tkMacOSXKeyEvent.c
@@ -17,7 +17,9 @@
#include "tkMacOSXInt.h"
#include "tkMacOSXConstants.h"
#include "tkMacOSXWm.h"
-#define IS_PRINTABLE(keychar) ((keychar >= 0x20) && (keychar < 0xF700))
+#define IS_PRINTABLE(keychar) ((keychar >= 0x20) && \
+ (keychar != 0x7f) && \
+ (keychar < 0xF700))
/*
#ifdef TK_MAC_DEBUG