Added suport for f1 on equipped items.

This commit is contained in:
BlueManiac
2021-10-16 12:48:38 +02:00
parent 64751392e1
commit c6de7b4397

View File

@@ -433,8 +433,14 @@ function DropDownClass:OnKeyUp(key)
self:ScrollSelIntoView()
return self
end
if self.hoverKeyUpFunc and self.hoverSel then
self.hoverKeyUpFunc(key, self.hoverSel, self.list[self.hoverSel])
if self.hoverKeyUpFunc then
local index
if self.hoverSel then
index = self.hoverSel
else
index = self.selIndex
end
self.hoverKeyUpFunc(key, index, self.list[index])
end
return self.dropped and self
end