Skip to content

Commit

Permalink
don't open vanilla options when doing text input in search mode
Browse files Browse the repository at this point in the history
  • Loading branch information
douira committed Jan 1, 2025
1 parent f67ebef commit d57078e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public boolean keyPressed(int keyCode, int scanCode, int modifiers) {
return true;
}

if (this.prompt == null && keyCode == GLFW.GLFW_KEY_P && (modifiers & GLFW.GLFW_MOD_SHIFT) != 0) {
if (this.prompt == null && this.searchWidget == null && keyCode == GLFW.GLFW_KEY_P && (modifiers & GLFW.GLFW_MOD_SHIFT) != 0) {
Minecraft.getInstance().setScreen(new net.minecraft.client.gui.screens.options.VideoSettingsScreen(this.prevScreen, Minecraft.getInstance(), Minecraft.getInstance().options));

return true;
Expand Down

0 comments on commit d57078e

Please sign in to comment.