Thread Tools Display Modes
10-16-20, 07:37 AM   #1
Stea
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Sep 2020
Posts: 8
Open to app Keybindings

My addon allows keybindings using the standard wow interface. I find a some people either have no idea where that is, or don't think to look there to set them. So I'd like to add an option in my context menu to open the blizzard keybindings window to the sub section for my addon, just like I have for the addon options. Is this possible? I've been poking around trying to find a function for this, but have not been successful.

Thanks
  Reply With Quote
10-16-20, 06:01 PM   #2
DahkCeles
A Cliff Giant
 
DahkCeles's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2020
Posts: 73
Lua Code:
  1. if (not KeyBindingFrame) then
  2.     KeyBindingFrame_LoadUI()
  3. end
  4. KeyBindingFrame:Show()
  Reply With Quote
10-16-20, 11:32 PM   #3
Stea
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Sep 2020
Posts: 8
Thanks, that did the trick. I added a search for the category I put my addon in, and I guess that's close enough:

Lua Code:
  1. if (not KeyBindingFrame) then
  2.    KeyBindingFrame_LoadUI()
  3. end
  4. if not InCombatLockdown() then
  5.   KeyBindingFrame:Show()
  6.   for _,v in pairs(KeyBindingFrame.categoryList.buttons) do
  7.     if v:GetText() == "AddOns" or v:GetText() == "ADDONS" then
  8.       v:Click()
  9.     end
  10.   end
  11. end

Last edited by Stea : 10-16-20 at 11:38 PM.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Open to app Keybindings

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off