Update System.lua

This commit is contained in:
IgorTimofeev 2022-05-18 22:26:27 +03:00 committed by GitHub
parent ca8e6fcb55
commit e3f6dea56c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1505,9 +1505,10 @@ local function gridIconFieldBackgroundObjectEventHandler(workspace, object, e1,
if e4 == 28 then
-- Если при нажатии энтера была выделенна ровно одна иконка, она попытается открыться
local selectedIcon
for i = 2, #iconField.children do
if object.parent.children[i].selected then
if selectedIcon ~= nil then
if not selectedIcon then
-- Больше одной иконки выбрано
return
end
@ -1517,8 +1518,8 @@ local function gridIconFieldBackgroundObjectEventHandler(workspace, object, e1,
end
if selectedIcon then
selectedIcon:launch ()
workspace:draw ()
selectedIcon:launch()
workspace:draw()
end
end
end