diff options
Diffstat (limited to 'main.lua')
-rw-r--r-- | main.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/main.lua b/main.lua index 7b7bdb7..918d414 100644 --- a/main.lua +++ b/main.lua @@ -75,7 +75,7 @@ function App.version_check() Error_message = nil Error_count = 0 -- we'll reuse error mode on load for an initial version check - local supported_versions = {'11.4', '12.0'} -- put the recommended version first + local supported_versions = {'11.5', '11.4', '12.0'} -- put the recommended version first local minor_version Major_version, minor_version = love.getVersion() Version = Major_version..'.'..minor_version @@ -252,13 +252,14 @@ function App.textinput(t) end function App.keyreleased(key, scancode) - if Current_app == 'error' then return end -- ignore events for some time after window in focus (mostly alt-tab) if Current_time < Last_focus_time + 0.01 then return end -- - if Current_app == 'run' then + if Current_app == 'error' then + Current_app = 'run' + elseif Current_app == 'run' then if run.key_release then run.key_release(key, scancode) end elseif Current_app == 'source' then if source.key_release then source.key_release(key, scancode) end |