Option Focus Fix

Mod

Fixes a bug introduced in 1.19.4, which made options stay focused even if you don't hover over them after clicking.

Client Utility

5,903 downloads
17 followers
Follow Save
Filter versions...

Merge Pull Request from CommandGenius:

  • Update to 1.21.9+
  • Bump version to 1.5.0
  • Merge Pull Request from CommandGenius:
    • Update to 1.21.4
  • Bump version to 1.4.0
  • Merge Pull Request from CommandGenius:
    • Don't unfocus text fields on click.
  • Rename some methods, because i was stupid back then (still am tho).
  • Merge Pull Request from CommandGenius:
    • Now Options are unfocused slightly earlier, which should result in it being identical to how it was pre 1.19.4.
    • This also fixes a bug where opening a new screen won't unfocus the button that opened the new screen.

Rewrite:

  • Now applies unfocusing on the elements directly on click/release, instead of running in the render-method. Improves performance, and fixes an issue where elements were automatically unfocused whenever you move your mouse from them, especially annoying on text fields.

Removed unnecessary accesswidener & fix startup-error by updating loom to 1.2. Shouldn't happen at all, but here's some info from the fabric-discord if you care: https://imgur.com/FN2LqqN

NOTE: This version is broken, it'll crash on startup. It was fixed in 1.2.1. I'll only leave it up because i don't like deleting stuff.

Updated to 1.20

Fix SHOULD now apply to every element, including both normal Options, and Options that are part of Element lists
(ex. Video Settings, Gamerule-Settings, etc.)

Initial Upload.


Project members

Lunatic

Owner

Details

Licensed MIT
Published 3 years ago
Updated a month ago