Skip to content

Commit aec48e0

Browse files
author
LocalIdentity
committed
Fix enter not selecting top gem in search
Due to changes from #9786 enter wasn't selecting the top gem anymore
1 parent c6483fa commit aec48e0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Classes/GemSelectControl.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,9 @@ function GemSelectClass:OnKeyDown(key, doubleClick)
842842
self:SetText("")
843843
end
844844
self.selIndex = m_max(self.selIndex, 1)
845+
if self.gems[self.list[self.selIndex]] then
846+
self:SetText(self.gems[self.list[self.selIndex]].name)
847+
end
845848
self:UpdateGem(true, true, true)
846849
return
847850
elseif key == "ESCAPE" then

0 commit comments

Comments
 (0)