Keybinds per Spec

Keybinds per Spec

366 Downloads

An addon for World of Warcraft that enables per-specialization key binding support. After being set, the current key binding layout will automatically change whenever the active specialization is changed. This includes situations when the active specialization is automatically changed by the game (i.e when entering arenas).

The addon is under 150 lines of code and tries to keep things simple. This means 1 key bind profile for each class specialization and no fancy extra options. The addon uses the standard key bindings menu to trigger it's actions.

How to Use

  • Saving Keybinds: Using the in-game talent window, activate the specialization you want to set key bindings for. Set your binds using the key binding menu.
  • Loading Keybinds: Using the in-game talent window, activate the desired specialization.


A message similar to the one bellow will be printed whenever key bindings change



To manually load a key binding
Use the following chat command: /kps load "spec-num"
"spec-num" is the specialization number to load. Usually a number between 1 and 3 (4 for druids). The numbering follows the order the specializations are listed in the in-game talent menu. This option has been added mostly for convenience and should rarely be needed.

Additional Info
Specs that haven't been key bound yet will use the current set of key bindings as a template.

Key bindings will be saved locally within the WTF folder of your game installation. Only the active key bindings are stored on the game server. The location of your saved key binds is: WTF/Account/your-account/your-realm/your-character/SavedVariables/KeybindsperSpec.lua


Compatibility & Limitations

All key bindings belonging to the standard blizzard interface and those showing up in the standard key binding menu (Esc -> Key Bindings) are supported.

Action Bar Mods (ElvUI, Dominos, Bartender, ..)
The default game only has 5 fully customizable bars. Most action bar mods re-use these 5 bars and add a few extra of their own. These mods will have to properly register their own bars with the game or KeybindsPerSpec won't know they exist. This is why the safe way to set key bindings is by using the default blizzard key binding menu (Esc -> Key Bindings). Avoid using 'Quick Binding' mode. If you do, double check that those bindings also appeared in the key bindings menu.

For Dominos all 10 bars are supported. As of ElvUI v12.17 only use bars 1,2,3,4,5. Put bindings that stay the same across specs on the remaining bars. If an action bar mod gets updated and things change, you can always use the default blizzard key binding menu to find out which key binding corresponds to which bar/button.

FAQ

Q: What about the 'Character Specific Key Bindings' toggle in the Key Bindings menu?
A: The addon will save the current active key bindings as character bindings. This means that this toggle will be implicitly set.

Q: Why are (some) of my action bar key bindings not properly getting tracked?
A: See the limitations. For mods like ElvUI use the default blizzard key binding menu (Esc -> Key Bindings) to set your bindings. Avoid using 'Quick Binding Mode' if you don't know what you are doing.

Q: Can you add support for AddonName?
A: KeybindsPerSpec use the default game functionality to set and retrieve key bindings. Addons that also make use of this mechanism will be supported by default. I don't plan to add special workarounds since it will cause dependencies and make the addon more complex. Keeping the addon short and concise will increase the chance of the addon staying compatible with future versions of WoW.


Feedback
To give feedback or report a bug, please use the issues page on github.

Sources
Current sources, as well as pre-releases can be found on github