From 68ee0eb9a5b4c9676797d26db5628747270e9649 Mon Sep 17 00:00:00 2001 From: nea Date: Sun, 26 Mar 2023 20:37:26 +0200 Subject: Auto focus search --- build.gradle.kts | 6 +++--- src/main/java/at/hannibal2/skyhanni/config/Features.java | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 129362b74..2336ae52a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -71,8 +71,8 @@ dependencies { implementation("com.github.hannibal002:notenoughupdates:4957f0b:all") devenvMod("com.github.hannibal002:notenoughupdates:4957f0b:all") - shadowModImpl("com.github.notenoughupdates:moulconfig:b9c84f5") - devenvMod("com.github.notenoughupdates:moulconfig:b9c84f5:test") + shadowModImpl("com.github.notenoughupdates:moulconfig:423e5b9") + devenvMod("com.github.notenoughupdates:moulconfig:423e5b9:test") } // Minecraft configuration: @@ -147,4 +147,4 @@ compileKotlin.kotlinOptions { val compileTestKotlin: KotlinCompile by tasks compileTestKotlin.kotlinOptions { jvmTarget = "1.8" -} \ No newline at end of file +} diff --git a/src/main/java/at/hannibal2/skyhanni/config/Features.java b/src/main/java/at/hannibal2/skyhanni/config/Features.java index fcdfe5097..bc7913f37 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/Features.java +++ b/src/main/java/at/hannibal2/skyhanni/config/Features.java @@ -16,6 +16,12 @@ public class Features extends Config { public static final ResourceLocation DISCORD = new ResourceLocation("notenoughupdates:social/discord.png"); public static final ResourceLocation GITHUB = new ResourceLocation("notenoughupdates:social/github.png"); + + @Override + public boolean shouldAutoFocusSearchbar() { + return true; + } + @Override public List getSocials() { return Arrays.asList( -- cgit