is it possible to trigger a keyboard key or note vie lua?
Im trying to create a button that will trigger key.name “return” (previews/play sample)
this is all i could find but its for capturing key input not sending it
-------- Introduction
-- Currently there are two ways to to create custom views:
--
-- Shows a modal dialog with a title, custom content and custom button labels:
renoise.app():show_custom_prompt(title, content_view, {button_labels} [,key_handler_func])
-> [pressed button]
-- _(and)_ Shows a non modal dialog, a floating tool window, with custom
-- content:
renoise.app():show_custom_dialog(title, content_view [, key_handler_func])
-> [dialog object]
-- key_handler_func is optional. When defined, it should point to a function
-- with the signature noted below. "key" is a table with the fields:
-- > key = {
-- > name, -- name of the key, like 'esc' or 'a' - always valid
-- > modifiers, -- modifier states. 'shift + control' - always valid
-- > character, -- character representation of the key or nil
-- > note, -- virtual keyboard piano key value (starting from 0) or nil
-- > repeated, -- true when the key is soft repeated (hold down)
-- > }
--
-- "dialog" is a reference to the dialog the keyhandler is running on.
--
-- function my_keyhandler_func(dialog, key) end