Skip to content

Commit

Permalink
back keybind
Browse files Browse the repository at this point in the history
  • Loading branch information
WaitingIdly committed Jun 23, 2024
1 parent f5960d5 commit 2c5c9bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public void keyTyped(char c, int keyCode) {

return;
}
if (keyCode == 14) { // BACKSPACE
if (keyCode == BQ_Keybindings.backPage.getKeyCode()) { // BACKSPACE
if (this.mc.currentScreen instanceof GuiScreenCanvas) {
GuiScreenCanvas canvas = (GuiScreenCanvas) mc.currentScreen;
boolean hasKeyAction = false;
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/betterquesting/client/BQ_Keybindings.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@

public class BQ_Keybindings {
public static KeyBinding openQuests;
public static KeyBinding backPage;

public static void RegisterKeys() {
openQuests = new KeyBinding("key.betterquesting.quests", Keyboard.KEY_GRAVE, ModReference.NAME);
backPage = new KeyBinding("key.betterquesting.back", Keyboard.KEY_BACK, ModReference.NAME);

ClientRegistry.registerKeyBinding(openQuests);
ClientRegistry.registerKeyBinding(backPage);
}
}
1 change: 1 addition & 0 deletions src/main/resources/assets/betterquesting/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ betterquesting.msg.copy_quest_copied=§eCopied to clipboard: §b%s
betterquesting.msg.copy_quest_failed=§cCould not copy §b%s§r§c to clipboard!

key.betterquesting.quests=Open Quests
key.betterquesting.back=Page Back
key.betterquesting.party=Party Manager
key.betterquesting.themes=Change Theme

Expand Down

0 comments on commit 2c5c9bb

Please sign in to comment.