3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
11 #import <Cocoa/Cocoa.h>
12 #include "AppleSupport.h"
15 void appleCleanupEditMenu() {
17 // Remove (disable) the "Start Dictation..." and "Emoji & Symbols" menu items
18 // from the "Edit" menu
20 [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"NSDisabledDictationMenuItem"];
21 [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"NSDisabledCharacterPaletteMenuItem"];
25 void appleCleanupViewMenu() {
27 #ifdef AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER
28 // Remove the "Show Tab Bar" menu item from the "View" menu, if supported
29 if ([NSWindow respondsToSelector:@selector(allowsAutomaticWindowTabbing)])
30 NSWindow.allowsAutomaticWindowTabbing = NO;
33 // Remove the "Enter Full Screen" menu item from the "View" menu
34 [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"NSFullScreenMenuItemEverywhere"];