google-code-export / autobar

Automatically exported from code.google.com/p/autobar
0 stars 0 forks source link

Hotkey text doesn't show on custom buttons #305

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The hotkey text doesn't show up for custom buttons.  This happens because
you only pass the frame name to GetBindingKey() when in the custom button
scenario.  The actual command that needs passed is "CLICK " ..
frame:GetName() .. ":LeftButton".  So the line of code in
AutoBar.Class.Button.prototype:UpdateHotkeys() should probably be:
local buttonBinding = self:GetButtonBinding() or "CLICK " ..
frame:GetName() .. ":LeftButton".

Or something similar, just so long as that command is passed.  I've tested
this as working and fixing the problem.

Original issue reported on code.google.com by vampire....@gmail.com on 28 May 2008 at 3:57

GoogleCodeExporter commented 9 years ago
The code for custom buttons had just not been done yet.

Currently I have it working with the default LibKeyBound code: GetBindingText
(hotKey, 'KEY_').  You can set bindings for custom keys and they show up both 
in the 
tooltip and the first one set shows up in the hotKey text of the button.

If you are somehow generating bindings that are not handled properly this way, 
post 
a ticket detailing how you are creating them.

Original comment by dirk.bes...@gmail.com on 2 Jun 2008 at 4:26