-
-
Notifications
You must be signed in to change notification settings - Fork 0
Preset Shortcuts
Scr0ols edited this page Jun 4, 2026
·
4 revisions
Each preset can have a keyboard shortcut assigned to it. Pressing the shortcut toggles that preset on/off without opening any UI.
A shortcut consists of up to 3 keys:
- 1 trigger key — the key whose press fires the shortcut
- Up to 2 held keys — keys that must be held down when the trigger is pressed
Examples:
-
Y— press Y alone -
I+Y— hold I, then press Y -
Ctrl+Alt+R— hold I and J, then press Y
Any key on the keyboard can be used, including function keys, numpad keys, and modifier keys (Shift, Ctrl, Alt). There is no restriction on which keys can be held vs trigger.
- Open the Presets screen (Main screen → Presets button → Manage)
- Click the preset you want to configure
- Click the Shortcut tab in the detail panel
- Press the keys you want to assign:
- Press and hold your held key(s) first
- Then press the trigger key
- The captured combination appears in green on screen
- Press Enter to confirm
- Press Backspace to clear the current shortcut
- Press Escape to cancel without saving
The assigned shortcut is shown next to the preset name in the list, e.g. [Ctrl+Alt+R].
The shortcut is checked on every game tick (client-side only). Detection works as follows:
- If the shortcut has held keys: all held keys must be physically held down via
GLFW.glfwGetKey, and the trigger key must transition from released to pressed (rising edge) - If the shortcut has no held keys: only the trigger key's rising edge is checked
This means the shortcut fires once per press, not repeatedly while held.
- Shortcuts are checked regardless of whether the SoundTweaks screen is open or not — they work any time the game has focus
- If two presets have the same shortcut, both are toggled simultaneously
- Shortcuts are saved per-preset in
soundtweaks_presets.json - The shortcut does not conflict with Minecraft's built-in keybinds at the GLFW level, but be mindful of overlap if you assign commonly used keys