@@ -181,13 +181,13 @@ Save a current theme to a file with the given name. returns success.
181
181
182
182
Save a currently selected track device chain to a file with the given name.
183
183
When no device chain is selected an error is raised. returns success.
184
- ### ` show_custom_dialog ` ([ * self* ] ( /API/builtins/self.md ) , title : [ ` DialogTitle ` ] ( #DialogTitle ) , content_view : [ ` renoise.Views.View ` ] ( /API/renoise/renoise.Views.View.md ) , key_handler : [ ` KeyHandler ` ] ( #KeyHandler ) [ ` ? ` ] ( /API/builtins/nil.md ) , key_handler_options : [ ` KeyHandlerOptions ` ] ( /API/structs/KeyHandlerOptions.md ) [ ` ? ` ] ( /API/builtins/nil.md ) ) {#show_custom_dialog}
184
+ ### ` show_custom_dialog ` ([ * self* ] ( /API/builtins/self.md ) , title : [ ` DialogTitle ` ] ( #DialogTitle ) , content_view : [ ` renoise.Views.View ` ] ( /API/renoise/renoise.Views.View.md ) , key_handler : [ ` KeyHandler ` ] ( #KeyHandler ) [ ` ? ` ] ( /API/builtins/nil.md ) , key_handler_options : [ ` KeyHandlerOptions ` ] ( #keyhandleroptions ) [ ` ? ` ] ( /API/builtins/nil.md ) ) {#show_custom_dialog}
185
185
` -> ` [ ` renoise.Dialog ` ] ( /API/renoise/renoise.Dialog.md )
186
186
187
187
Shows a non modal dialog (a floating tool window) with custom content.
188
188
When no key_handler is provided, the Escape key is used to close the dialog.
189
189
See: ~ renoise.ViewBuilder~ for more info about custom views.
190
- ### ` show_custom_prompt ` ([ * self* ] ( /API/builtins/self.md ) , title : [ ` string ` ] ( /API/builtins/string.md ) , content_view : [ ` renoise.Views.View ` ] ( /API/renoise/renoise.Views.View.md ) , button_labels : [ ` string ` ] ( /API/builtins/string.md ) ` [] ` , key_handler : [ ` KeyHandler ` ] ( #KeyHandler ) [ ` ? ` ] ( /API/builtins/nil.md ) , key_handler_options : [ ` KeyHandlerOptions ` ] ( /API/structs/KeyHandlerOptions.md ) [ ` ? ` ] ( /API/builtins/nil.md ) ) {#show_custom_prompt}
190
+ ### ` show_custom_prompt ` ([ * self* ] ( /API/builtins/self.md ) , title : [ ` string ` ] ( /API/builtins/string.md ) , content_view : [ ` renoise.Views.View ` ] ( /API/renoise/renoise.Views.View.md ) , button_labels : [ ` string ` ] ( /API/builtins/string.md ) ` [] ` , key_handler : [ ` KeyHandler ` ] ( #KeyHandler ) [ ` ? ` ] ( /API/builtins/nil.md ) , key_handler_options : [ ` KeyHandlerOptions ` ] ( #keyhandleroptions ) [ ` ? ` ] ( /API/builtins/nil.md ) ) {#show_custom_prompt}
191
191
` -> ` label : [ ` string ` ] ( /API/builtins/string.md )
192
192
193
193
Opens a modal dialog with a title, custom content and custom button labels.
@@ -211,9 +211,94 @@ during uninstallation.
211
211
212
212
213
213
214
+ ---
215
+ ## Structs
216
+ # KeyEvent
217
+
218
+ ---
219
+ ## Properties
220
+ ### character : [ ` string ` ] ( /API/builtins/string.md ) [ ` ? ` ] ( /API/builtins/nil.md ) {#character}
221
+ possible character representation of the key
222
+
223
+ ### modifiers : [ ` ModifierStates ` ] ( #ModifierStates ) {#modifiers}
224
+ the held down modifiers as a string
225
+
226
+ ### name : [ ` string ` ] ( /API/builtins/string.md ) {#name}
227
+ name of the key, like 'esc' or 'a'
228
+
229
+ ### note : [ ` integer ` ] ( /API/builtins/integer.md ) [ ` ? ` ] ( /API/builtins/nil.md ) {#note}
230
+ virtual keyboard piano key value (starting from 0)
231
+
232
+ ### repeated : [ ` boolean ` ] ( /API/builtins/boolean.md ) [ ` ? ` ] ( /API/builtins/nil.md ) {#repeated}
233
+ only present if ` send_key_repeat ` was set to true
234
+
235
+ ### state : ` "pressed" ` | ` "released" ` {#state}
236
+ only present if ` send_key_release ` was set to true
237
+
238
+
239
+
240
+
241
+
242
+ ---
243
+ ## Aliases
244
+ # alias ModifierStates {#ModifierStates}
245
+ [ ` string ` ] ( /API/builtins/string.md )
246
+ The modifier keys will be provided as a string.
247
+ Possible keys are dependent on the platform
248
+ * Windows : "shift", "alt", "control", "winkey"
249
+ * Linux : "shift", "alt", "control", "meta"
250
+ * Mac : "shift", "option", "control", "command"
251
+ If multiple modifiers are held down, the string will be formatted as
252
+ "<key > + <key >"
253
+ Their order will correspond to the following precedence
254
+ ` shift + alt/option + control + winkey/meta/command `
255
+ If no modifier is pressed, this will be an empty string
256
+
257
+
258
+
259
+ # KeyHandlerOptions
260
+
261
+ ---
262
+ ## Properties
263
+ ### send_key_release : [ ` boolean ` ] ( /API/builtins/boolean.md ) [ ` ? ` ] ( /API/builtins/nil.md ) {#send_key_release}
264
+ Default: false
265
+
266
+ ### send_key_repeat : [ ` boolean ` ] ( /API/builtins/boolean.md ) [ ` ? ` ] ( /API/builtins/nil.md ) {#send_key_repeat}
267
+ Default: true
268
+
269
+
270
+
271
+
272
+
273
+
274
+
214
275
---
215
276
## Aliases
216
277
# alias DialogTitle {#DialogTitle}
217
278
[ ` string ` ] ( /API/builtins/string.md )
218
279
280
+
281
+ # alias KeyHandler {#KeyHandler}
282
+ (dialog : [ ` renoise.Dialog ` ] ( /API/renoise/renoise.Dialog.md ) , key_event : [ ` KeyEvent ` ] ( #keyevent ) ) ` -> ` [ ` KeyEvent ` ] ( #keyevent ) [ ` ? ` ] ( /API/builtins/nil.md )
283
+ Optional keyhandler to process key events on a custom dialog.
284
+ When returning the passed key from the key-handler function, the
285
+ key will be passed back to Renoise's key event chain, in order to allow
286
+ processing global Renoise key-bindings from your dialog. This will not work
287
+ for modal dialogs. This also only applies to global shortcuts in Renoise,
288
+ because your dialog will steal the focus from all other Renoise views such as
289
+ the Pattern Editor, etc.
290
+
291
+ # alias ModifierStates {#ModifierStates}
292
+ [ ` string ` ] ( /API/builtins/string.md )
293
+ The modifier keys will be provided as a string.
294
+ Possible keys are dependent on the platform
295
+ * Windows : "shift", "alt", "control", "winkey"
296
+ * Linux : "shift", "alt", "control", "meta"
297
+ * Mac : "shift", "option", "control", "command"
298
+ If multiple modifiers are held down, the string will be formatted as
299
+ "<key > + <key >"
300
+ Their order will correspond to the following precedence
301
+ ` shift + alt/option + control + winkey/meta/command `
302
+ If no modifier is pressed, this will be an empty string
303
+
219
304
0 commit comments