summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXKeyEvent.c
diff options
context:
space:
mode:
authordas <das>2006-07-25 12:08:58 (GMT)
committerdas <das>2006-07-25 12:08:58 (GMT)
commit1f74a3f5e37f028fd51fe859f228b9acc58da90e (patch)
tree856b9c16b12f2bba4c7a6c2be475de57c1c4e32c /macosx/tkMacOSXKeyEvent.c
parent5bbf5d1e813c27bddae0dc2fb01ea1234fece503 (diff)
downloadtk-1f74a3f5e37f028fd51fe859f228b9acc58da90e.zip
tk-1f74a3f5e37f028fd51fe859f228b9acc58da90e.tar.gz
tk-1f74a3f5e37f028fd51fe859f228b9acc58da90e.tar.bz2
* macosx/tkMacOSXKeyEvent.c (TkMacOSXProcessKeyboardEvent): handle key
shortcut for kHICommandQuit in the same way as other application menu item key shortcuts. [Bug 1516950]
Diffstat (limited to 'macosx/tkMacOSXKeyEvent.c')
-rw-r--r--macosx/tkMacOSXKeyEvent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/macosx/tkMacOSXKeyEvent.c b/macosx/tkMacOSXKeyEvent.c
index 070c3d4..470fdee 100644
--- a/macosx/tkMacOSXKeyEvent.c
+++ b/macosx/tkMacOSXKeyEvent.c
@@ -54,7 +54,7 @@
* software in accordance with the terms specified in this
* license.
*
- * RCS: @(#) $Id: tkMacOSXKeyEvent.c,v 1.16 2006/07/20 06:25:19 das Exp $
+ * RCS: @(#) $Id: tkMacOSXKeyEvent.c,v 1.17 2006/07/25 12:08:59 das Exp $
*/
#include "tkMacOSXInt.h"
@@ -194,6 +194,7 @@ TkMacOSXProcessKeyboardEvent(
case kHICommandHideOthers:
case kHICommandShowAll:
case kHICommandPreferences:
+ case kHICommandQuit:
statusPtr->stopProcessing = 0;
return 0; /* TODO: may not be on event on queue. */
break;