1
0
mirror of https://github.com/kepler155c/opus synced 2025-11-10 20:43:03 +00:00

Replace process.api with Event

This commit is contained in:
kepler155c@gmail.com
2017-07-28 19:01:59 -04:00
parent f8bcf90a6b
commit be51935662
21 changed files with 326 additions and 343 deletions

View File

@@ -50,9 +50,11 @@ function page:eventHandler(event)
Event.exitPullEvents()
elseif event.type == 'key' and event.key == 'enter' then
showHelp(self.grid:getSelected().name)
self:setFocus(self.filter)
self:draw()
if self.grid:getSelected() then
showHelp(self.grid:getSelected().name)
self:setFocus(self.filter)
self:draw()
end
elseif event.type == 'grid_select' then
showHelp(event.selected.name)
@@ -80,5 +82,4 @@ function page:eventHandler(event)
end
UI:setPage(page)
Event.pullEvents()
UI.term:reset()
UI:pullEvents()