Skip to content
Snippets Groups Projects
Commit d126a414 authored by dg's avatar dg
Browse files

Lore popups can be exited with Enter

git-svn-id: http://svn.net-core.org/repos/t-engine4@2928 51575b47-30f0-44d4-a5cc-537603b46e54
parent ac6d5a27
No related branches found
No related tags found
No related merge requests found
......@@ -55,9 +55,8 @@ function _M:init(l, w, force_height)
}
}
}
if not no_leave then
self.key:addBind("EXIT", function() game:unregisterDialog(self) if fct then fct() end end)
end
self.key:addBind("EXIT", function() game:unregisterDialog(self) if fct then fct() end end)
self.key:addBind("ACCEPT", function() game:unregisterDialog(self) if fct then fct() end end)
self:setupUI(true, true)
game:registerDialog(self)
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment