Skip to content

Commit 270e6ef

Browse files
committed
add superkey and action
1 parent 4d5cfb2 commit 270e6ef

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

mylua.lua

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ function M.version() --module version(recommended addition)
3030
return 1
3131
end
3232

33-
function M.post_fs_data()
33+
function M.post_fs_data(superkey)
3434
info("post_mount_fs called")
35+
info("suerpkey:"..superkey)
3536
if is_lite_mode_enabled() then
3637
info("Lite mode is enabled")
3738
else
@@ -44,11 +45,15 @@ function M.post_fs_data()
4445
end
4546
end
4647

47-
function M.post_mount()
48+
function M.post_mount(superkey)
4849
info("post_mount called")
4950
end
50-
function M.service()
51+
function M.service(superkey)
5152
info("service called")
5253
end
53-
54+
function M.action()
55+
info("action called")
56+
print("this is action function")
57+
os.execute("sleep 2")
58+
end
5459
return M

0 commit comments

Comments
 (0)