diff options
author | culler <culler> | 2019-10-24 03:54:04 (GMT) |
---|---|---|
committer | culler <culler> | 2019-10-24 03:54:04 (GMT) |
commit | f42842d83e17bea792315d12d4f6a169d46274ad (patch) | |
tree | 15a1d6dd6740824369003af5d81cf155c7b7968c /macosx | |
parent | 9e15ca1a5e2f462d294bdaab89914e5ebfeb1328 (diff) | |
download | tk-f42842d83e17bea792315d12d4f6a169d46274ad.zip tk-f42842d83e17bea792315d12d4f6a169d46274ad.tar.gz tk-f42842d83e17bea792315d12d4f6a169d46274ad.tar.bz2 |
Restore the no-op keyDown method to keep the mac from beeping every time a key is pressed.
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXWindowEvent.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c index c7b1c6a..6c0f335 100644 --- a/macosx/tkMacOSXWindowEvent.c +++ b/macosx/tkMacOSXWindowEvent.c @@ -1187,6 +1187,18 @@ RedisplayView( } /* + * This keyDown method does nothing, which is a huge improvement over the + * default keyDown method which beeps every time a key is pressed. + */ + +- (void) keyDown: (NSEvent *) theEvent +{ +#ifdef TK_MAC_DEBUG_EVENTS + TKLog(@"-[%@(%p) %s] %@", [self class], self, _cmd, theEvent); +#endif +} + +/* * When the services menu is opened this is called for each Responder in * the Responder chain until a service provider is found. The TkContentView * should be the first (and generally only) Responder in the chain. We |