OK, glad that this thread is useful.
Well, I'm looking forward to my full adoption of TW5 once the global 
keyboard shortcut thing is in place.
Currently I found my mouse-free editing workflow with TWC is broken with 
TW5. 
Other than that I think the overall flexibility boost, the improved saving 
and exporting, etc. are a big plus to programmers.
I love the widgets and messages. 

On Thursday, March 5, 2015 at 1:45:20 PM UTC-5, Patrick Detzner wrote:
>
> My guess is (and I would love if someone could confirm this) that the 
> keyboard widget is only responsive when the focus is set to an element 
> which it contains.
> What worked for me was to go into the tiddler $:/core/ui/PageTemplate, 
> then change the relevant section to this:
> <$keyboard message="tm-new-tiddler" param="new title" 
> key="ctrl+shift+enter">
>
> <$list 
> filter="[all[shadows+tiddlers]tag[$:/tags/PageTemplate]!has[draft.of]]" 
> variable="listItem">
>
> <$transclude tiddler=<<listItem>>/>
>
> </$list>
>
> </$keyboard>
> The middle 3 lines were in the original, and I added the top and bottom 
> line to wrap the keyboard shortcut for the new tiddler around every tiddler 
> that is transcluded on the page.
> This is a really useful idea, I'm happy that you brought it up.
> Patrick
>
> On Thursday, March 5, 2015 at 11:58:29 AM UTC-5, Kakyo wrote:
>>
>> My browser is Safari 8.0.3
>>
>> On Thursday, March 5, 2015 at 11:54:56 AM UTC-5, Kakyo wrote:
>>>
>>> I just learned that keyboard shortcuts are created using KeyboardWidget.
>>> I also learned that one can create widget inside a tiddler.
>>> I now would like to create keyboard shortcuts that can work across the 
>>> whole wiki.
>>> Is this possible? I tried to add a KeyboardWidget this way in a tiddler, 
>>> but the shortcut is not responsive.
>>>
>>> Here is my code:
>>>
>>> <$keyboard message="tm-new-tiddler" param="new title" 
>>> key="ctrl+shift+enter">Hello Keyboard</$keyboard>
>>>
>>> Anything wrong with the syntax or the overall approach?
>>>
>>> Thanks!
>>>
>>

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to