From 094f3bd7e89ada36ddef8845770de21e71977954 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 12 Jul 2022 13:40:53 -0700 Subject: button framework is at the app level --- main.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main.lua') diff --git a/main.lua b/main.lua index 6a4e30c..c9c5142 100644 --- a/main.lua +++ b/main.lua @@ -2,12 +2,15 @@ utf8 = require 'utf8' require 'app' require 'test' + require 'keychord' +require 'button' require 'main_tests' -- delegate most business logic to a layer that can be reused by other projects require 'edit' +Editor_state = {} -- called both in tests and real run function App.initialize_globals() @@ -136,6 +139,7 @@ function App.filedropped(file) end function App.draw() + Button_handlers = {} edit.draw() end -- cgit 1.4.1-2-gfad0