Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-253185

The ESC key cannot be used to exit the "Sending your report" menu

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 22w24a
    • 1.19.1 Pre-release 1
    • None
    • Confirmed
    • Accessibility
    • Very Important

    Description

      The Bug:

      The ESC key cannot be used to exit the "Sending your report" menu.

      Steps to Reproduce:

      • Join a multiplayer server or a LAN world.
      • Have yourself or others type some messages in the chat.
      • Open the social interactions menu, select any player, and click the create report button.
      • Enter some random details within the report and hit the "Send Report" button.
      • Once the report has been sent or has failed to send, hit the ESC key in an attempt to close the "Sending your report" menu.
      • Take note as to whether or not the ESC key cannot be used to exit the "Sending your report" menu.

      Observed Behavior:

      The ESC key cannot be used to exit this menu.

      Expected Behavior:

      The ESC key would be able to be used to exit this menu.

      Code Analysis:

      Code analysis by Avoma can be found below.

      The following is based on a decompiled version of Minecraft 22w24a using Mojang mappings.

      net.minecraft.client.gui.screens.reporting.ChatReportScreen.java
      public class ChatReportScreen extends Screen {
         ...
         class DiscardReportWarningScreen extends WarningScreen {
            ...
            @Override
            public boolean shouldCloseOnEsc() {
               return false;
            }
            ...

      If we look at the above class, we can see that the shouldCloseOnEsc() boolean always returns "false" in the ChatReportScreen.java class, therefore not allowing the ESC key to be used to exit the "Sending your report" menu.

      Attachments

        Activity

          People

            xilefian [Mojang] Felix Jones
            Avoma Avoma
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              CHK: