WoWInterface SVN KeyboardAccess

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 4 to Rev 5
    Reverse comparison

Rev 4 → Rev 5

core.lua
65,10 → 65,12
end
end
 
function events:READY_CHECK(...) --ReadyCheck PopUp
function events:READY_CHECK(initiator,timer) --ReadyCheck PopUp
--print('READY_CHECK')
tinsert(KA.handleT,'ReadyCheckFrame')
KA.handler:EnableKeyboard(1)
if UnitName('player')==initiator then
tinsert(KA.handleT,'ReadyCheckFrame')
KA.handler:EnableKeyboard(1)
end
end
 
function events:LFG_PROPOSAL_SHOW(...) --LFD Tool PopUp
137,6 → 139,12
end
 
--KeyPressing handling
KA.handler:SetScript('OnKeyDown',function(self,key)
if key=='LSHIFT' or key=='RSHIFT' then
self:EnableKeyboard(0)
KA.MODShift=true
end
end)
KA.handler:SetScript('OnKeyUp',function(self,key)
if key=='ENTER' then
_G[KA.handleT[1]..buttonT[KA.handleT[1]][1]]:Click()
145,6 → 153,10
_G[KA.handleT[1]..buttonT[KA.handleT[1]][2]]:Click()
tremove(KA.handleT,1)
end
if key=='LSHIFT' or key=='RSHIFT' then
self:EnableKeyboard(1)
KA.MODShift=false
end
if #KA.handleT==0 then
self:EnableKeyboard(0)
end