mirror of
https://github.com/Insality/druid
synced 2025-09-27 18:12:21 +02:00
rename help_modules to helper
This commit is contained in:
15
druid/helper/druid_input.lua
Normal file
15
druid/helper/druid_input.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
local M = {}
|
||||
|
||||
local ADD_FOCUS = hash("acquire_input_focus")
|
||||
local REMOVE_FOCUS = hash("release_input_focus")
|
||||
local PATH_OBJ = "."
|
||||
|
||||
function M.focus()
|
||||
msg.post(PATH_OBJ, ADD_FOCUS)
|
||||
end
|
||||
|
||||
function M.remove()
|
||||
msg.post(PATH_OBJ, REMOVE_FOCUS)
|
||||
end
|
||||
|
||||
return M
|
Reference in New Issue
Block a user