diff options
| author | ruki <[email protected]> | 2017-12-29 23:23:31 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-12-29 14:21:10 +0800 |
| commit | ff8b64effa9882573426f4d81f4b492d1328fba3 (patch) | |
| tree | 243ba68cf5938c0e4ba14ece0b02339d3a2dfa72 /tests | |
| parent | eb3805ec6e4e4ae187d0cd7c9082e6c8558a51ee (diff) | |
remove event register
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ui/hello.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/ui/hello.lua b/tests/ui/hello.lua index c2fd6162a..223ab8094 100644 --- a/tests/ui/hello.lua +++ b/tests/ui/hello.lua @@ -55,7 +55,9 @@ end -- on event function hello:event_on(e) - view.event_on(self, e) + if view.event_on(self, e) then + return true + end if e.type == event.ev_keyboard then self:statusbar():info():text_set(e.key_name) if e.key_name == "s" then |
