Thanks for the helpful reply, I was able to get it to work by adding a 
tabindex="1" to the div element in the ViewTemplate and enclosing the div 
inside a keyboard widget. Your website also had some good plugins.


<$keyboard key="ctrl+enter" message="tm-edit-tiddler"><div tabindex="1" 
class=<<frame-classes>>><$list 
filter="[all[shadows+tiddlers]tag[$:/tags/ViewTemplate]!has[draft.of]]" 
variable="listItem"><$transclude tiddler=<<listItem>>/></$list>
</div>
</$keyboard>


Harsha.
On Sunday, April 3, 2016 at 6:02:32 PM UTC+5:30, Knut Franke wrote:
>
> Hello Harsha,
>
> On Sunday, April 3, 2016 at 8:05:03 AM UTC+2, harsha wrote:
>
>> I selected some text in a tiddler and typed the shortcut. But it didn't 
>> enter edit mode. Is the problem that keyboard events dont enter the widget? 
>>
>
> Probably. As far as I know, only DOM elements with a tabindex attribute 
> get keyboard events, and you probably don't have any of those in the 
> rendering of your tiddler.
>
> I've also been experimenting with similar keyboard shortcuts, and I got it 
> mostly working. Head over to http://nome.github.io/TiddlyPlugins/ and 
> press F2 to edit a tiddler. You can't select the tiddler to edit with the 
> mouse though, you have to use Ctrl+Up/Down. It's still a bit rough, and 
> behaves weirdly sometimes, but the basics are there.
>
> Cheers,
> Knut
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f33e4d07-a1c4-4ae5-91c4-42d5aa0118f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to