aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-03-26 20:37:26 +0200
committernea <nea@nea.moe>2023-03-26 20:37:26 +0200
commit68ee0eb9a5b4c9676797d26db5628747270e9649 (patch)
tree4b458fc291823ca146ca2b3e617804ec083da069
parent4b3f01bdfa771cb5b446888485f007d9178b6a7f (diff)
downloadskyhanni-68ee0eb9a5b4c9676797d26db5628747270e9649.tar.gz
skyhanni-68ee0eb9a5b4c9676797d26db5628747270e9649.tar.bz2
skyhanni-68ee0eb9a5b4c9676797d26db5628747270e9649.zip
Auto focus search
-rw-r--r--build.gradle.kts6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/Features.java6
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<Social> getSocials() {
return Arrays.asList(