diff options
author | Linnea Gräf <nea@nea.moe> | 2025-01-12 14:36:06 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2025-01-12 14:36:06 +0100 |
commit | 4562d294bb19aace4479e68a425b092ba401242f (patch) | |
tree | 9678c384d99aa8568594f7488ed480739cc65d12 /src/main/kotlin/features | |
parent | 29bdb00b7f22cf3de58fda23459b65740199e278 (diff) | |
download | Firmament-4562d294bb19aace4479e68a425b092ba401242f.tar.gz Firmament-4562d294bb19aace4479e68a425b092ba401242f.tar.bz2 Firmament-4562d294bb19aace4479e68a425b092ba401242f.zip |
fix: Closing storage overlay when searching for "e"
Diffstat (limited to 'src/main/kotlin/features')
-rw-r--r-- | src/main/kotlin/features/inventory/storageoverlay/StorageOverlayScreen.kt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/kotlin/features/inventory/storageoverlay/StorageOverlayScreen.kt b/src/main/kotlin/features/inventory/storageoverlay/StorageOverlayScreen.kt index cf1cf1d..07a96c2 100644 --- a/src/main/kotlin/features/inventory/storageoverlay/StorageOverlayScreen.kt +++ b/src/main/kotlin/features/inventory/storageoverlay/StorageOverlayScreen.kt @@ -302,6 +302,7 @@ class StorageOverlayScreen : Screen(Text.literal("")) { } fun mouseClicked(mouseX: Double, mouseY: Double, button: Int, activePage: StoragePageSlot?): Boolean { + guiContext.setFocusedElement(null) // Blur all elements. They will be refocused by clickMCComponentInPlace if in doubt, and we don't have any double click components. if (getScrollPanelInner().contains(mouseX, mouseY)) { val data = StorageOverlay.Data.data ?: StorageData() layoutedForEach(data) { rect, page, _ -> |