focus switching change for when stack count slider is hidden

This commit is contained in:
Manuel Simon Hirsig
2016-02-05 21:01:59 +01:00
parent 4bc8840b03
commit 066534372c
+6 -2
View File
@@ -187,8 +187,10 @@ function public.on_load()
slider.editbox:SetScript('OnTabPressed', function()
if IsShiftKeyDown() then
private.buyout_price:SetFocus()
else
elseif private.stack_count_slider.editbox:IsVisible() then
private.stack_count_slider.editbox:SetFocus()
else
private.start_price:SetFocus()
end
end)
slider.editbox:SetWidth(50)
@@ -303,8 +305,10 @@ function public.on_load()
end
end)
editbox:SetScript('OnTabPressed', function()
if IsShiftKeyDown() then
if IsShiftKeyDown() and private.stack_count_slider.editbox:IsVisible() then
private.stack_count_slider.editbox:SetFocus()
elseif IsShiftKeyDown() then
private.stack_size_slider.editbox:SetFocus()
else
private.buyout_price:SetFocus()
end