Skip to content

Commit b58da2d

Browse files
CopilotbedaHovorka
andauthored
Phase 3.1: Remove conflicting menu accelerators and update help text
Agent-Logs-Url: https://github.com/bedaHovorka/interlockSim/sessions/6f6ddc9a-b231-46b1-b5d7-d5906f238355 Co-authored-by: bedaHovorka <5263405+bedaHovorka@users.noreply.github.com>
1 parent d860fe1 commit b58da2d

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

  • desktop-ui/src/main/kotlin/cz/vutbr/fit/interlockSim/gui

desktop-ui/src/main/kotlin/cz/vutbr/fit/interlockSim/gui/MenuBar.kt

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,9 @@ class MenuBar : JMenuBar() {
402402
)
403403
for ((label, multiplier, keyCode) in speedPresets) {
404404
val item = JMenuItem(SetSpeedAction(label, multiplier))
405-
item.accelerator = KeyStroke.getKeyStroke(keyCode, 0)
405+
// Note: Keyboard accelerators removed in Phase 3.1 (Issue #193).
406+
// Global keyboard shortcuts are now handled by SimulationKeyBindings.
407+
// item.accelerator = KeyStroke.getKeyStroke(keyCode, 0)
406408
speedMenu.add(item)
407409
}
408410
menu.add(speedMenu)
@@ -425,12 +427,15 @@ class MenuBar : JMenuBar() {
425427
"<br><b>Simulation:</b><br>" +
426428
"- Simulation &gt; Start...: Load XML and start simulation<br>" +
427429
"- Simulation &gt; Stop: Terminate running simulation<br>" +
428-
"<br><b>Simulation Speed (keyboard shortcuts):</b><br>" +
429-
"- Key 1: 0.1x speed<br>" +
430-
"- Key 2: 0.5x speed<br>" +
431-
"- Key 3: 1x speed (real-time)<br>" +
432-
"- Key 4: 2x speed<br>" +
433-
"- Key 5: 10x speed</html>"
430+
"<br><b>Simulation Speed (Phase 3.1 global keyboard shortcuts):</b><br>" +
431+
"- Key 1: 1x speed (real-time)<br>" +
432+
"- Key 2: 2x speed<br>" +
433+
"- Key 3: 5x speed<br>" +
434+
"- Key 4: 10x speed<br>" +
435+
"- Key 5: 50x speed<br>" +
436+
"- Plus (+): Increase speed by 1.5x<br>" +
437+
"- Minus (-): Decrease speed by 1.5x<br>" +
438+
"- Space: Pause/resume simulation</html>"
434439
)
435440
)
436441
menu.add(

0 commit comments

Comments
 (0)