Skip to content

Commit 1d4b67e

Browse files
authored
Pass tags with on_click msg (#88)
1 parent 6eedf92 commit 1d4b67e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

richtext/richtext.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,8 @@ function M.on_click(words, action)
589589
node_id = gui.get_id(word.node),
590590
text = word.text,
591591
x = action.x, y = action.y,
592-
screen_x = action.screen_x, screen_y = action.screen_y
592+
screen_x = action.screen_x, screen_y = action.screen_y,
593+
tags = word.tags
593594
}
594595
msg.post("#", word.tags.a, message)
595596
return true

0 commit comments

Comments
 (0)