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,8 +262,8 @@ end | ||
262 | 262 | ||
263 | function _M:moveFocus(v) | 263 | function _M:moveFocus(v) |
264 | local id = self.focus_ui_id | 264 | local id = self.focus_ui_id |
265 | + local start = id or 1 | ||
265 | id = util.boundWrap((id or 1) + v, 1, #self.uis) | 266 | id = util.boundWrap((id or 1) + v, 1, #self.uis) |
266 | - local start = id | ||
267 | while start ~= id do | 267 | while start ~= id do |
268 | if self.uis[id].ui.can_focus then | 268 | if self.uis[id].ui.can_focus then |
269 | self:setFocus(id) | 269 | self:setFocus(id) |
-
Please register or login to post a comment