Fix characterlist being destroyed on ESC pressed closes #93
Signed-off-by: otfallen <f.fallen45@gmail.com>
This commit is contained in:
parent
eb7a11158a
commit
f5cbb62eff
|
@ -243,7 +243,7 @@ function CharacterList.destroy()
|
||||||
end
|
end
|
||||||
|
|
||||||
function CharacterList.show()
|
function CharacterList.show()
|
||||||
if not loadBox and not errorBox and charactersWindow then
|
if not loadBox and not errorBox then
|
||||||
charactersWindow:show()
|
charactersWindow:show()
|
||||||
charactersWindow:raise()
|
charactersWindow:raise()
|
||||||
charactersWindow:focus()
|
charactersWindow:focus()
|
||||||
|
|
|
@ -46,7 +46,7 @@ MainWindow
|
||||||
size: 250 248
|
size: 250 248
|
||||||
visible: false
|
visible: false
|
||||||
@onEnter: CharacterList.doLogin()
|
@onEnter: CharacterList.doLogin()
|
||||||
@onEscape: CharacterList.destroy()
|
@onEscape: CharacterList.hide()
|
||||||
@onSetup: |
|
@onSetup: |
|
||||||
g_keyboard.bindKeyPress('Up', function() self:getChildById('characters'):focusPreviousChild(KeyboardFocusReason) end, self)
|
g_keyboard.bindKeyPress('Up', function() self:getChildById('characters'):focusPreviousChild(KeyboardFocusReason) end, self)
|
||||||
g_keyboard.bindKeyPress('Down', function() self:getChildById('characters'):focusNextChild(KeyboardFocusReason) end, self)
|
g_keyboard.bindKeyPress('Down', function() self:getChildById('characters'):focusNextChild(KeyboardFocusReason) end, self)
|
||||||
|
|
Loading…
Reference in New Issue