diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-12-03 13:01:49 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-12-03 13:01:49 -0800 |
commit | 67eb28ef1c5e7aaeeff540afcb1be00ae4aef239 (patch) | |
tree | e8672ff54c121985b2aaf0fbf7a2c209a2960150 /main.lua | |
parent | df2cfb820d23e7f5016c5b790d59d5732cb93308 (diff) | |
parent | f6bc670ef689aa6485f3e3ad242efb5271b48f58 (diff) | |
download | view.love-67eb28ef1c5e7aaeeff540afcb1be00ae4aef239.tar.gz |
Merge lines.love
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 |