移除无效的debug功能键,整理代码

This commit is contained in:
MrZ626
2021-06-25 20:53:41 +08:00
parent c8480a17e9
commit 535e78a8b3
3 changed files with 12 additions and 5 deletions

View File

@@ -1243,8 +1243,15 @@ function WIDGET.setLang(widgetText)
end
end
end
function WIDGET.getSelected()
return WIDGET.sel
end
function WIDGET.isFocus(W)
return W==nil and WIDGET.sel or WIDGET.sel==W
if W then
return W and WIDGET.sel==W
else
return WIDGET.sel~=false
end
end
function WIDGET.focus(W)
if WIDGET.sel==W then return end