Keyboard Shortcuts for focused editbox (textedit widget)

33 views
Skip to first unread message

Mohammad

unread,
Jul 17, 2019, 1:44:02 PM7/17/19
to tiddl...@googlegroups.com
I was asked to add Enter as shortcut for todolist pluging to add item instead of clicking the add button!

My question is:

Is there any way to define a global keyboard shortcut to work on a focused elements here textbox (edittext widget)
This means when you press ENTER key in a textbox created by edittext widget an action is trigged!

And when in tiddler edit view or other area you press ENTER that action is not triggered?

In summary the global keyboard shortcuts only work on focused element not elsewhere!

--Mohammad



Mohammad

unread,
Jul 17, 2019, 1:53:03 PM7/17/19
to TiddlyWiki
I found this on Tiddlywiki.com

<$keyboard key="alt-shift-M" actions='<$action-setfield $tiddler="my-tiddler" $field="my-field" $value="my-value"/>'>

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

</$keyboard>
sasaa

Mohammad

unread,
Jul 17, 2019, 2:09:34 PM7/17/19
to TiddlyWiki
Solved!
 This was successful! 
Thank you Tiddlywiki.com :-)

See this in todolist pluging 1.0.0 RC4

--Mohammad

TonyM

unread,
Jul 17, 2019, 11:30:04 PM7/17/19
to TiddlyWiki
Thanks for sharing. I can use that.

Tw scripts?

Tony

Mohammad

unread,
Jul 17, 2019, 11:40:25 PM7/17/19
to TiddlyWiki
I will add it!
Reply all
Reply to author
Forward
0 new messages