Skip to content

Commit

Permalink
Fix tree selection hotkey double selecting (#7789)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wires77 authored Jul 22, 2024
1 parent bd0d1e6 commit 9a6462a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Classes/TreeTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,13 @@ function TreeTabClass:Draw(viewPort, inputEvents)
self.build.buildFlag = true
inputEvents[id] = nil
elseif event.key == "UP" then
index = self.activeSpec - 1
if self.specList[index] then
local index = self.activeSpec - 1
if self.specList[index] and not self.controls.specSelect:IsMouseOver() and not self.controls.specSelect.dropped then
self.build.modFlag = true
self:SetActiveSpec(index)
end
elseif event.key == "DOWN" then
index = self.activeSpec + 1
elseif event.key == "DOWN" and not self.controls.specSelect:IsMouseOver() and not self.controls.specSelect.dropped then
local index = self.activeSpec + 1
if self.specList[index] then
self.build.modFlag = true
self:SetActiveSpec(index)
Expand Down

0 comments on commit 9a6462a

Please sign in to comment.