WoWInterface SVN KeyboardAccess

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 10 to Rev 9
    Reverse comparison

Rev 10 → Rev 9

core.lua
134,10 → 134,8
local name = k:GetName()
KA.oldShow[name] = k:GetScript('OnShow')
k:SetScript('OnShow',function(...)
if not ( k.which =='REPLACE_ENCHANT' or k.which=='DEATH' or k.which=='RECOVER_CORPSE_INSTANCE' or k.which=='BUYOUT_AUCTION') then
tinsert(KA.handleT,name)
KA.handler:EnableKeyboard(1)
end
tinsert(KA.handleT,name)
KA.handler:EnableKeyboard(1)
KA.oldShow[name](...)
end)
end
152,7 → 150,7
KA.handler:SetScript('OnKeyUp',function(self,key)
if key=='ENTER' then
local frame = _G[KA.handleT[1]]
if frame.which == "REPLACE_ENCHANT" or frame.which=='DEATH' or frame.which=='RECOVER_CORPSE_INSTANCE' or frame.which=='BUYOUT_AUCTION' then
if frame.which == "REPLACE_ENCHANT" or frame.which=='DEATH' or frame.which='RECOVER_CORPSE_INSTANCE' then
tremove(KA.handleT,1)
if #KA.handleT==0 then
self:EnableKeyboard(0)