Skip to content

Commit

Permalink
making hotkey discoverable via menu. refs #10400
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Feb 15, 2024
1 parent a03865f commit e1a70b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/GUIApplicationWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,12 @@ GUIApplicationWindow::fillMenuBar() {
mySelectLanesMenuCascade = new FXMenuCascade(myEditMenu, TL("Select lanes which allow..."), GUIIconSubSys::getIcon(GUIIcon::FLAG), mySelectByPermissions);
mySelectLanesMenuCascade->setHelpText(TL("Opens a menu for selecting a vehicle class by which to selected lanes."));
new FXMenuSeparator(myEditMenu);
GUIDesigns::buildFXMenuCommandShortcut(myEditMenu,
TL("Set Breakpoint"), "B", TL("Sets a breakpoint at the current simulation step"),
GUIIconSubSys::getIcon(GUIIcon::APP_BREAKPOINTS), this, MID_HOTKEY_B_BREAKPOINT);
GUIDesigns::buildFXMenuCommandShortcut(myEditMenu,
TL("Set Breakpoint with offset"), "Alt+B", TL("Sets a breakpoint at the current simulation step + offset configured in application settings"),
GUIIconSubSys::getIcon(GUIIcon::APP_BREAKPOINTS), this, MID_HOTKEY_ALT_B_BREAKPOINT_EARLY);
GUIDesigns::buildFXMenuCommandShortcut(myEditMenu,
TL("Edit Breakpoints"), "Ctrl+B", TL("Opens a dialog for editing breakpoints."),
GUIIconSubSys::getIcon(GUIIcon::APP_BREAKPOINTS), this, MID_HOTKEY_CTRL_B_EDITBREAKPOINT_OPENDATAELEMENTS);
Expand Down

0 comments on commit e1a70b3

Please sign in to comment.