1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Reimplement commit 512c27d, fixing menus & shortcut keys on Windows

This commit is contained in:
Paul Licameli
2020-01-29 13:37:02 -05:00
parent ff2d20f335
commit 9639ba84f4
16 changed files with 40 additions and 45 deletions

View File

@@ -830,7 +830,7 @@ MenuTable::BaseItemSharedPtr ClipSelectMenu()
using Options = CommandManager::Options;
static BaseItemSharedPtr menu {
FinderScope( findCommandHandler ).Eval(
( FinderScope{ findCommandHandler },
Menu( wxT("Clip"), XO("Clip B&oundaries"),
Command( wxT("SelPrevClipBoundaryToCursor"),
XXO("Pre&vious Clip Boundary to Cursor"),
@@ -857,7 +857,7 @@ MenuTable::BaseItemSharedPtr ClipCursorItems()
using Options = CommandManager::Options;
static BaseItemSharedPtr items{
FinderScope( findCommandHandler ).Eval(
( FinderScope{ findCommandHandler },
Items( wxT("Clip"),
Command( wxT("CursPrevClipBoundary"), XXO("Pre&vious Clip Boundary"),
FN(OnCursorPrevClipBoundary),
@@ -877,7 +877,7 @@ MenuTable::BaseItemSharedPtr ExtraClipCursorItems()
using namespace MenuTable;
static BaseItemSharedPtr items{
FinderScope( findCommandHandler ).Eval(
( FinderScope{ findCommandHandler },
Items( wxT("Clip"),
Command( wxT("ClipLeft"), XXO("Clip L&eft"), FN(OnClipLeft),
TracksExistFlag() | TrackPanelHasFocus(), wxT("\twantKeyup") ),