Skip to content

Commit

Permalink
fix: text-related shortcuts on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Oct 3, 2024
1 parent 86a178d commit c75150f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src-tauri/src/functionality/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,18 @@ pub fn create_menubar(app: &tauri::AppHandle) -> Result<(), tauri::Error> {
.quit()
.build()?;

let menu = MenuBuilder::new(app).items(&[&submenu]).build()?;
let file_submenu = SubmenuBuilder::new(app, "File")
.select_all()
.copy()
.cut()
.paste()
.fullscreen()
.quit()
.build()?;

let menu = MenuBuilder::new(app)
.items(&[&submenu, &file_submenu])
.build()?;

app.set_menu(menu).unwrap_or_default();

Expand Down

0 comments on commit c75150f

Please sign in to comment.