Mercurial > wow > skeletonkey
diff SkeletonKey/BindingsFrame.lua @ 50:1aba8a6fd4a9
- fix kb.bindings content and define a generic function for constructing its keystrings
- handle hotkey text for actions placed in multiple slots
-- hotkey.actionbar generates a cache table for use during binding changes
author | Nenue |
---|---|
date | Fri, 19 Aug 2016 01:12:56 -0400 |
parents | 9a9d7f2a7c07 |
children | 81a7c71c4483 |
line wrap: on
line diff
--- a/SkeletonKey/BindingsFrame.lua Thu Aug 18 01:34:22 2016 -0400 +++ b/SkeletonKey/BindingsFrame.lua Fri Aug 19 01:12:56 2016 -0400 @@ -60,28 +60,22 @@ kb.saveTarget.border:SetColorTexture(1,1,1,1) end local KeyButton_OnKeyUp = function(self, key) - kb.UpdateSlot(kb.saveTarget) if key == 'ESCAPE' then kb.DeactivateSlot(kb.saveTarget) kb.ui() return end - if key:match('[RL]SHIFT') or key:match('[RL]ALT') or key:match('[RL]CTRL') then return elseif kb.saveTarget then - if kb.SaveSlot(kb.saveTarget, key) then if not (kb.db.stickyMode or kb.db.hoverInput) then - kb.DeactivateSlot(kb.saveTarget) end kb.ui() end end - - end local KeyButton_OnClick = function(self, click) @@ -96,20 +90,16 @@ kb.db.stickyMode = true KeyBinderStickyMode:SetChecked(true) end - kb.ActivateSlot(self) kb.ui() end - end elseif click == 'RightButton' then kb.ReleaseSlot(self) kb.ui() elseif kb.saveTarget then - if kb.SaveSlot(kb.saveTarget, string.upper(click)) then if not (kb.db.stickyMode or kb.db.hoverInput) then - kb.DeactivateSlot(kb.saveTarget) end kb.ui()