refactor: change EnterFullScreen to ToggleFullScreen

This commit is contained in:
amrbashir 2022-06-19 11:52:14 +02:00
parent a125e8a58c
commit 5c1b220cbb
No known key found for this signature in database
GPG key ID: BBD7A47A2003FF33
2 changed files with 3 additions and 3 deletions

View file

@ -454,12 +454,12 @@ pub enum NativeMenuItem {
/// - **macOS:** macOS require this menu item to enable "Select All" keyboard shortcut for your app. /// - **macOS:** macOS require this menu item to enable "Select All" keyboard shortcut for your app.
/// - **Linux Wayland:** Not implmeneted. /// - **Linux Wayland:** Not implmeneted.
SelectAll, SelectAll,
/// A native "Enter fullscreen" menu item. /// A native "Toggle fullscreen" menu item.
/// ///
/// ## platform-specific: /// ## platform-specific:
/// ///
/// - **Windows / Linux:** Unsupported. /// - **Windows / Linux:** Unsupported.
EnterFullScreen, ToggleFullScreen,
/// A native "Minimize current window" menu item. /// A native "Minimize current window" menu item.
Minimize, Minimize,
/// A native "Zoom" menu item. /// A native "Zoom" menu item.

View file

@ -125,7 +125,7 @@ impl Submenu {
NativeMenuItem::ShowAll => { NativeMenuItem::ShowAll => {
make_menu_item("Show All", selector("unhideAllApplications:"), None) make_menu_item("Show All", selector("unhideAllApplications:"), None)
} }
NativeMenuItem::EnterFullScreen => make_menu_item( NativeMenuItem::ToggleFullScreen => make_menu_item(
"Toggle Full Screen", "Toggle Full Screen",
selector("toggleFullScreen:"), selector("toggleFullScreen:"),
Some("Ctrl+F"), Some("Ctrl+F"),