mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-14 18:10:02 +00:00
![Simon Huber](/assets/img/avatar_default.png)
* Add shortcut descriptions to Misc.multids * Update framed.js * Update simple.js * Add inputActions and refreshTitle to factory.js * Add inputActions and refreshTitle to edit.js * Update DefaultSearchResultList.tid * Update search.tid * Update ShortcutInfo.multids * Update shortcuts.multids * Create keyboard-driven-input.tid * Update tag-picker.tid * Create keyboard-driven-input_Macro.tid * Update EditTextWidget.tid * Update EditWidget.tid * Update engine.js * Update base.tid * Use primaryListFilter, secondaryListFilter, primaryList and secondaryList * Update tag-picker.tid * Update search.tid * Update DefaultSearchResultList.tid * Update keyboard-driven-input_Macro.tid * Fix typo udpate -> update * Update framed.js
21 lines
1.2 KiB
Plaintext
21 lines
1.2 KiB
Plaintext
title: keyboard-driven-input Macro
|
|
tags: Macros [[Core Macros]]
|
|
|
|
The <<.def keyboard-driven-input>> [[macro|Macros]] generates an input field or textarea that lets you cycle through a given list of entries with the <kbd>up</kbd> and <kbd>down</kbd> arrow keys. Doing so, an entry gets selected and can be processed with further actions
|
|
|
|
!! Parameters
|
|
|
|
To create the input field or textarea, the <<.def keyboard-driven-input>> [[macro|Macros]] accepts all parameters of the EditTextWidget
|
|
|
|
The additional parameters are:
|
|
|
|
| |purpose |h
|
|
|storeTitle |the title of the tiddler that stores the user input |
|
|
|selectionStateTitle |the title of the tiddler that stores the selected entry with a -list1 or -list2 suffix to make it unique |
|
|
|inputAcceptActions |the actions that get processed when the user hits <kbd>{{$:/config/shortcuts/input-accept}}</kbd> |
|
|
|inputAcceptVariantActions |the actions that get processed when the user hits <kbd>{{$:/config/shortcuts/input-accept-variant}}</kbd> |
|
|
|inputCancelActions |the actions that get processed when the user hits <kbd>{{$:/config/shortcuts/input-cancel}}</kbd> |
|
|
|primaryListFilter |a filter that specifies the first item-list |
|
|
|secondaryListFilter |a second filter that specifies a second item-list |
|
|
|