romm icon indicating copy to clipboard operation
romm copied to clipboard

[Bug] Keyboard shortcuts for saving/loading state do not persist state between sessions

Open chandz05 opened this issue 2 years ago • 0 comments

RomM version Version 3.0.1

Describe the bug When using keyboard shortcuts in EJS for saving and loading game state (default "1" for save, and "2" for load), the state does not persist and cannot be selected in the dropdowns when starting a new session. The save/load state behavior works as expected when using the mouse over menu in EJS.

To Reproduce Steps to reproduce the behavior:

  1. Go to a playable game in Romm
  2. Click on the "play" button
  3. When in game, press "1" to save state.
  4. Press "2" and the game will load state as expected.
  5. Exit the session by closing the browser, pressing the browser "back" button etc
  6. Go back to the same game in Romm
  7. Click on the "play" button
  8. Dropdowns will not have the save state information
  9. When in game again, pressing "2" on the keyboard to load state will do nothing.

Expected behavior Keyboard shortcuts should behave the same way that the "save state" and "load state" buttons in the mouse over menu behave

Screenshots Added a video showing behavior with chrome dev tools network tab open Screen recording 2024-03-17 10.03.56 PM.webm

Desktop (please complete the following information):

  • OS: Unraid 6.12.8
  • Chrome
  • Version 122.0.6261.118

Additional context None

chandz05 avatar Mar 18 '24 19:03 chandz05