create focus callback, better exit callback stability
This commit is contained in:
parent
f6a95e81c6
commit
0763d750ff
7
main.xml
7
main.xml
|
@ -529,6 +529,13 @@
|
|||
self:addcommand('On', onCommand)
|
||||
self:addcommand('Ready', screen_ready_command)
|
||||
self:addcommand('Off', exit)
|
||||
self:addcommand('SaltyResetMessageCommand', exit)
|
||||
self:addcommand('WindowFocus', function()
|
||||
uranium:call('focus', true)
|
||||
end)
|
||||
self:addcommand('WindowFocusLost', function()
|
||||
uranium:call('focus', false)
|
||||
end)
|
||||
self:queuecommand('Ready')
|
||||
else
|
||||
Trace('got an error loading main.lua!')
|
||||
|
|
Loading…
Reference in New Issue