UltimateUI guide
How to add Keybinds
In this guide, you will learn how to add Keybinds to UI Menu
With keybinds, you can add actions to your pages that can be triggered not only with the cursor, but also by pressing keys on the keyboard.
Available Keys#
Here is a list of the keybinds that are currently available to use on your page:
| Key | From |
|---|---|
| W, A, S, D | Movement keys |
| Q | Drop an item |
| F | Swap an item to the off-hand |
| L | Open the advancements menu |
| 1-9 | Select an item from the hotbar |
How to Add Keybinds#
To add a keybind to your page, open the .yml file and add a keybinds: section at the very bottom of the page.
Below is an example of how to use it:
keybinds:
- key: Q
actions:
- type: message
value: '&aYou pressed &e&lQ'
- key: SHIFT_L
actions:
- type: redirect
value: example_menu
- type: message
value: '&aRedirected to &nExample_Menu'