Commit 6b83261a5199eb3acec99f382b21ee2171b15672
1 parent
d777179c
git-svn-id: http://svn.net-core.org/repos/t-engine4@1420 51575b47-30f0-44d4-a5cc-537603b46e54
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -262,8 +262,8 @@ end |
262 | 262 | |
263 | 263 | function _M:moveFocus(v) |
264 | 264 | local id = self.focus_ui_id |
265 | + local start = id or 1 | |
265 | 266 | id = util.boundWrap((id or 1) + v, 1, #self.uis) |
266 | - local start = id | |
267 | 267 | while start ~= id do |
268 | 268 | if self.uis[id].ui.can_focus then |
269 | 269 | self:setFocus(id) | ... | ... |
-
Please register or login to post a comment