findit/util/AbstractStackFinder: Add check for whether NEI Search is focused (#8)

* findit/util/AbstractStackFinder: Add check for whether NEI Search is
focused

	This adds a check to make sure that FindIt doesn't start a
search when searching in NEI

Signed-off-by: Firenoo <[email protected]>

* findit/util/AbstractStackFinder: Move key handling code to lastKeyTyped

	Moves FindIt's keyhandling code to lastKeyTyped to avoid
conflicting with textfields.

Signed-off-by: Firenoo <[email protected]>

* findit/util/AbstractStackFinder: Code cleanup

Signed-off-by: Firenoo <[email protected]>

* findit/service: Revert default keybinds to T/Y.

Signed-off-by: Firenoo <[email protected]>

Signed-off-by: Firenoo <[email protected]>
This commit is contained in:
firenoo authored and GitHub committed 2022-08-31 10:24:49 +02:00
1 parent 84f2cf1182
commit bdf41e7ed8
3 files changed
+18 -18

No files matched your search

@@ -16,7 +16,7 @@ import org.lwjgl.input.Keyboard;
public class ClientBlockFindService extends BlockFindService {
public ClientBlockFindService() {
API.addHashBind("gui.findit.find_block", Keyboard.KEY_Y + NEIClientUtils.SHIFT_HASH);
API.addHashBind("gui.findit.find_block", Keyboard.KEY_Y);
GuiContainerManager.addInputHandler(new BlockFindInputHandler());
}