Skip to content

Commit

Permalink
Give the cancel audio key a default keybind
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Fireplace committed Sep 14, 2020
1 parent 55b1e86 commit ca4ea6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/the_fireplace/audiobook/Audiobook.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;
import net.minecraft.client.options.KeyBinding;
import net.minecraft.client.util.InputUtil;

import java.awt.event.KeyEvent;

Expand All @@ -15,6 +14,6 @@ public class Audiobook implements ClientModInitializer {
@Override
public void onInitializeClient() {
audiobookKey = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.audiobook.read_book", KeyEvent.VK_H, "key.categories.misc"));
stopAudiobookKey = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.audiobook.stop_book", InputUtil.UNKNOWN_KEY.getCode(), "key.categories.misc"));
stopAudiobookKey = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.audiobook.stop_book", KeyEvent.VK_J, "key.categories.misc"));
}
}

0 comments on commit ca4ea6b

Please sign in to comment.