Go Back   WowAce Forums > Addon Chat > AddOn HELP!
AddOn HELP! Requests for assistance and misc bug reports go here.

Reply
 
Thread Tools
Old 03-02-2009   #1
TrAsHeR
Member
 
TrAsHeR's Avatar
 
Join Date: May 2006
Posts: 14
Default Shortcut ! Help !

Hi,

I’ll try to be as clear as possible, here is my problem :

When I put shortcuts in my actionbar like :

R, X, C,… etc: it’s all ok

2-buttons shortcuts like

ctrl+R shift+E displays like this:
c-R, Shi…

SCREENSHOT : http://img136.imageshack.us/img136/8...0209092920.jpg

No problem for the Control, but for the shift shortcuts it gets more complicated, I have 7 of them on my rogue, which is no such a problem because I know them al, the problem is when I go on rerolls

So if someone knows an add-on, or know how to create shortcuts to replace

Shi… by S-E

Thank you

PS : MAJ = SHIFT
__________________

Last edited by TrAsHeR; 03-02-2009 at 10:44 AM.
TrAsHeR is offline   Reply With Quote
Old 03-02-2009   #2
Xinhuan
Asian Sheep Lover
 
Xinhuan's Avatar
 
Join Date: Aug 2007
Location: Singapore
Posts: 3,556
Default Re: Shortcut ! Help !

Your link is broken.
__________________
Author/Maintainer of Postal, Omen3, GemHelper, BankItems, WoWEquip, GatherMate, Routes, HandyNotes and some others.
Xinhuan is offline   Reply With Quote
Old 03-02-2009   #3
TrAsHeR
Member
 
TrAsHeR's Avatar
 
Join Date: May 2006
Posts: 14
Default Re: Shortcut ! Help !

It's ok sorry
__________________
TrAsHeR is offline   Reply With Quote
Old 03-02-2009   #4
Xinhuan
Asian Sheep Lover
 
Xinhuan's Avatar
 
Join Date: Aug 2007
Location: Singapore
Posts: 3,556
Default Re: Shortcut ! Help !

The default UI abbrieviates ctrl, shift, and alt to c, s and a. So I'm not sure what "Maj" is, or what language that is.
__________________
Author/Maintainer of Postal, Omen3, GemHelper, BankItems, WoWEquip, GatherMate, Routes, HandyNotes and some others.
Xinhuan is offline   Reply With Quote
Old 03-02-2009   #5
TrAsHeR
Member
 
TrAsHeR's Avatar
 
Join Date: May 2006
Posts: 14
Default Re: Shortcut ! Help !

MAJ = SHIFT (french version)
__________________
TrAsHeR is offline   Reply With Quote
Old 03-02-2009   #6
Seerah
Legendary Member
 
Seerah's Avatar
 
Join Date: May 2006
Posts: 6,156
Default Re: Shortcut ! Help !

might just be a localization thing or something in the client
__________________
"ACE = Accidental Caps-Lock Error" -Dameek


Seerah is offline   Reply With Quote
Old 03-02-2009   #7
TrAsHeR
Member
 
TrAsHeR's Avatar
 
Join Date: May 2006
Posts: 14
Default Re: Shortcut ! Help !

MAJ = 3 Carac

SHIFT = 5 Carac

CTRL = 4 Carac

the client cut 4 carac +
__________________
TrAsHeR is offline   Reply With Quote
Old 03-05-2009   #8
TrAsHeR
Member
 
TrAsHeR's Avatar
 
Join Date: May 2006
Posts: 14
Default Re: Shortcut ! Help !

up
__________________
TrAsHeR is offline   Reply With Quote
Old 03-05-2009   #9
jerry
Amazing Member
 
Join Date: Jul 2006
Posts: 1,362
Default Re: Shortcut ! Help !

This is a Blizzard bug.

Look at UIParent.lua, in the function GetBindingText():
Code:
    local modKeys = ''; 
    if ( not dashIndex ) then 
        dashIndex = 0; 
    else 
        modKeys = strsub(name, 1, dashIndex); 
 
        if ( tempName == "CAPSLOCK" ) then 
            gsub(tempName, "CAPSLOCK", "Caps"); 
        end 
         
        -- replace for all languages 
        -- for the "push-to-talk" binding 
        modKeys = gsub(modKeys, "LSHIFT", LSHIFT_KEY_TEXT); 
        modKeys = gsub(modKeys, "RSHIFT", RSHIFT_KEY_TEXT); 
        modKeys = gsub(modKeys, "LCTRL", LCTRL_KEY_TEXT); 
        modKeys = gsub(modKeys, "RCTRL", RCTRL_KEY_TEXT); 
        modKeys = gsub(modKeys, "LALT", LALT_KEY_TEXT); 
        modKeys = gsub(modKeys, "RALT", RALT_KEY_TEXT); 
         
        -- use the SHIFT code if they decide to localize the CTRL further. The token is CTRL_KEY_TEXT 
        if ( GetLocale() == "deDE") then 
            modKeys = gsub(modKeys, "CTRL", "STRG"); 
        end 
        -- Only doing French for now since all the other languages use SHIFT, remove the "if" if other languages localize it 
        if ( GetLocale() == "frFR" ) then 
            modKeys = gsub(modKeys, "SHIFT", SHIFT_KEY_TEXT); 
        end 
    end 
 
    if ( returnAbbr ) then 
        if ( count > 1 ) then 
            return "·"; 
        else  
            modKeys = gsub(modKeys, "CTRL", "c"); 
            modKeys = gsub(modKeys, "SHIFT", "s"); 
            modKeys = gsub(modKeys, "ALT", "a"); 
            modKeys = gsub(modKeys, "STRG", "st"); 
        end 
    end
As you can see, for frFR, "SHIFT" is replaced with "MAJ" (SHIFT_KEY_TEXT). Later, if Abbreviations are requested (returnAbbr evaluates to true) the "SHIFT" is replaced with a "s". Obviously, in frFR, there's no "SHIFT" to replace.

Modifying GetBindingText() yourself is a bad idea. Expect tainting of the action bars if you do so.

One solution would be to securely Hook "ActionButton_UpdateHotkeys", which is the function used by Blizzard to update the HotKey text in ActionButtons and that calls GetBindingText. Something like this might be enough:

Code:
hooksecurefunc(ActionButton_UpdateHotkeys, function (self)
  local hotkey = _G[self:GetName().."HotKey"]
  hotkey:SetText(hotkey:GetText():replace("MAJ", "m"))
end)
jerry is offline   Reply With Quote
Old 03-06-2009   #10
TrAsHeR
Member
 
TrAsHeR's Avatar
 
Join Date: May 2006
Posts: 14
Default Re: Shortcut ! Help !

Ok thanks but where can I add this code?
__________________
TrAsHeR is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 04:09 PM.