fix: autohide un-registering cursor events when menu is open

closes #495
This commit is contained in:
tomasklaen
2023-04-03 21:53:30 +02:00
parent 5fbfac3eca
commit 808fa59418
2 changed files with 15 additions and 10 deletions

View File

@@ -56,6 +56,7 @@ function Menu:close(immediate, callback)
menu.is_closing, menu.stack, menu.current, menu.all, menu.by_id = false, nil, nil, {}, {}
menu:disable_key_bindings()
Elements:update_proximities()
cursor.queue_autohide()
if callback then callback() end
request_render()
end