Close the current screen by clicking outside the GUI.
Works with inventory screens and the chat screen, compatible with JEI.

Should be compatible with most mods that add buttons to the screen. If a mod adds a button in an unconvential manner, it may require special attention. If you find any incompatibilities or other issues, feel free to make a new issue on the issues page or message me on discord.
Icon by CyndaFR.