Please help me check the keyboard shortcut ~

I read this link https://tiddlywiki.com/static/How%20to%20create%20keyboard%20shortcuts.html

And make a shortcut myself, second one was copied from the site, it worked when I typing in the input widget, but the first one not worked, I don’t know why seems no difference.


! not worked 
<$keyboard key="alt-shift-k" actions='<$action-sendmessage $message="tm-edit-text-operation" $param="wrap-selection" prefix="<<ML " suffix=">>"/>'>

<$edit-text tag="input" tiddler="my-tiddler"/>

</$keyboard>

! worked
<$keyboard key="alt-m" actions='<$action-setfield $tiddler="my-tiddler" $field="my-field" $value="my-value"/>'>

<$edit-text tag="input" tiddler="my-tiddler"/>

</$keyboard>

If I change <$edit-text tag="input" tiddler="my-tiddler"/> to <$edit-text tag="textarea" tiddler="my-tiddler"/> is not worked too.

I understand this operation acts on the current edit-text. So It may not work outside the editor. It is used for most Editor Toolbar buttons.

1 Like

I had a similar question elsewhere before, so while I remember, if those actions were somehow enhanced to work with a user generated edit-text widget in addition to “the editor” that would be a MASSIVE win for a new generation of editing and content creating enhancements!!

sorry I don’t understand, what do you mean by “enchanced”?

Now I solve it you can add the shortcut to Editor toolbar will be work.

You can search for “linkify” or other button already add to toolbar for details, just copy the config, will work.

Hmm interesting, I’ll check it out!