WarperSan / ShipInventory

1 stars 1 forks source link

[BUG] User is sometimes not returned to the previous menu #21

Closed minimusubi closed 1 month ago

minimusubi commented 1 month ago

Describe the bug

Pressing ESC (or ITAPI's configured Exit Application key) should always return the user to the previous menu. However, after using Retrieve random or Retrieve all, the pressing the key returns the user to the main command line.

To Reproduce

Note: this may only be reproducible if the ShowConfirmation setting is true.

  1. Put scrap in the ship inventory
  2. Open the terminal and type ship
  3. Select Retrieve random or Retrieve all
  4. (optional) If all Retrieve buttons are disabled, put scrap in the inventory a. Open the terminal and type ship
  5. Select Retrieve single
  6. Select any scrap
  7. Press ESC
  8. Observe that you are now at the command line
  9. Type ship
  10. Select Retrieve single or Retrieve type
  11. Press ESC
  12. Observe that you are now at the command line

Expected behavior

At steps 8 and 12, you should instead be returned to the previous menu, not the command line.