Revert "Added hotkey and the accelerator to the top menu (#4097)" (#4099)

This reverts commit e09810bfff.
This commit is contained in:
Pavel Laptev 2024-06-17 14:20:38 +02:00 committed by GitHub
parent 8c2e029c4e
commit 0dfb591ac4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 7 deletions

View File

@ -19,7 +19,6 @@
import { VirtualBranchService } from '$lib/vbranches/virtualBranch'; import { VirtualBranchService } from '$lib/vbranches/virtualBranch';
import { onDestroy, onMount, setContext } from 'svelte'; import { onDestroy, onMount, setContext } from 'svelte';
import type { LayoutData } from './$types'; import type { LayoutData } from './$types';
import { goto } from '$app/navigation';
export let data: LayoutData; export let data: LayoutData;
@ -78,9 +77,6 @@
const handleKeyDown = createKeybind({ const handleKeyDown = createKeybind({
'$mod+Shift+H': () => { '$mod+Shift+H': () => {
$showHistoryView = !$showHistoryView; $showHistoryView = !$showHistoryView;
},
'$mod+,': () => {
goto(`/${projectId}/settings`);
} }
}); });

View File

@ -154,9 +154,8 @@ pub fn build(_package_info: &PackageInfo) -> Menu {
)); ));
project_menu = project_menu.add_native_item(MenuItem::Separator); project_menu = project_menu.add_native_item(MenuItem::Separator);
project_menu = project_menu.add_item( project_menu =
CustomMenuItem::new("project/settings", "Project Settings").accelerator("CmdOrCtrl+,"), project_menu.add_item(CustomMenuItem::new("project/settings", "Project Settings"));
);
menu = menu.add_submenu(Submenu::new("Project", project_menu)); menu = menu.add_submenu(Submenu::new("Project", project_menu));
#[cfg(target_os = "macos")] #[cfg(target_os = "macos")]