namespace ElectronNET.API.Entities { /// /// /// public enum MenuRole { /// /// The undo /// undo = 1, /// /// The redo /// redo, /// /// The cut /// cut, /// /// The copy /// copy, /// /// The paste /// paste, /// /// The pasteAndMatchStyle /// pasteAndMatchStyle, /// /// The selectAll /// selectAll, /// /// The delete /// delete, /// /// Minimize current window /// minimize, /// /// Close current window /// close, /// /// Quit the application /// quit, /// /// Reload the current window /// reload, /// /// Reload the current window ignoring the cache. /// forceReload, /// /// Toggle developer tools in the current window /// toggleDevTools, /// /// Toggle full screen mode on the current window /// togglefullscreen, /// /// Reset the focused page’s zoom level to the original size /// resetZoom, /// /// Zoom in the focused page by 10% /// zoomIn, /// /// Zoom out the focused page by 10% /// zoomOut, /// /// Whole default “Edit” menu (Undo, Copy, etc.) /// editMenu, /// /// Whole default “Window” menu (Minimize, Close, etc.) /// windowMenu, /// /// Only macOS: Map to the orderFrontStandardAboutPanel action /// about, /// /// Only macOS: Map to the hide action /// hide, /// /// Only macOS: Map to the hideOtherApplications action /// hideOthers, /// /// Only macOS: Map to the unhideAllApplications action /// unhide, /// /// Only macOS: Map to the startSpeaking action /// startSpeaking, /// /// Only macOS: Map to the stopSpeaking action /// stopSpeaking, /// /// Only macOS: Map to the arrangeInFront action /// front, /// /// Only macOS: Map to the performZoom action /// zoom, /// /// Only macOS: The submenu is a “Window” menu /// window, /// /// Only macOS: The submenu is a “Help” menu /// help, /// /// Only macOS: The submenu is a “Services” menu /// services, /// /// Toggle built-in spellchecker. /// toggleSpellChecker, /// /// The submenu is a "File" menu. /// fileMenu, /// /// The submenu is a "View" menu. /// viewMenu, /// /// The application menu. /// appMenu, /// /// The submenu is a "Share" menu. /// shareMenu, /// /// Displays a list of files recently opened by the app. /// recentDocuments, /// /// Clear the recent documents list. /// clearRecentDocuments, /// /// Toggle the tab bar (macOS). /// toggleTabBar, /// /// Select the next tab (macOS). /// selectNextTab, /// /// Select the previous tab (macOS). /// selectPreviousTab, /// /// Show all tabs (macOS). /// showAllTabs, /// /// Merge all windows (macOS). /// mergeAllWindows, /// /// Move the current tab to a new window (macOS). /// moveTabToNewWindow, /// /// Show substitutions panel (macOS). /// showSubstitutions, /// /// Toggle smart quotes (macOS). /// toggleSmartQuotes, /// /// Toggle smart dashes (macOS). /// toggleSmartDashes, /// /// Toggle text replacement (macOS). /// toggleTextReplacement, // Backwards-compatibility aliases (old identifiers) to avoid breaking existing code. // These map to the same enum values as their official values. pasteandmatchstyle = pasteAndMatchStyle, selectall = selectAll, forcereload = forceReload, toggledevtools = toggleDevTools, resetzoom = resetZoom, zoomin = zoomIn, zoomout = zoomOut, hideothers = hideOthers, startspeaking = startSpeaking, stopspeaking = stopSpeaking, togglespellchecker = toggleSpellChecker, togglesmartquotes = toggleSmartQuotes, togglesmartdashes = toggleSmartDashes, toggletextreplacement = toggleTextReplacement } }