accessKey for




accessKey for <script>
user name
2007-12-28 11:56:33
How do I assign a hotkey for a script? I found one way but
it works
only when the tiddler is open. It does not work when the
script is
inside a popup.

<part Bookmarklets hidden>
<script label="home" title="back to home
view">
	story.closeAllTiddlers();
	restart();
	refreshPageTemplate();
 	return false;
</script><script>place.lastChild.accessKey="
;H";</script>
</part>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "TiddlyWiki" group.
To post to this group, send email to TiddlyWikigooglegroups.com
To unsubscribe from this group, send email to
TiddlyWiki-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: accessKey for <script>
user name
2007-12-28 12:32:11


On Dec 28, 9:56 am, RA <nameany...gmail.com> wrote:
> How do I assign a hotkey for a script? I found one way
but it works
> only when the tiddler is open. It does not work when
the script is
> inside a popup.

The technique you used (assigning the
place.lastChild.accessKey) is
correct.  However, access keys only work for elements that
are
currently rendered.  Popup contents are rendered "on
the fly", so the
access key isn't defined until the popup is visible, and is
removed
again when the popup is dismissed.

-e

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "TiddlyWiki" group.
To post to this group, send email to TiddlyWikigooglegroups.com
To unsubscribe from this group, send email to
TiddlyWiki-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: accessKey for <script>
user name
2007-12-28 12:52:32
So what would be the technique to have the script always
accessible
via access key?

On Dec 28, 10:32 am, Eric Shulman <elsdes...gmail.com> wrote:
> On Dec 28, 9:56 am, RA <nameany...gmail.com> wrote:
>
> > How do I assign a hotkey for a script? I found one
way but it works
> > only when the tiddler is open. It does not work
when the script is
> > inside a popup.
>
> The technique you used (assigning the
place.lastChild.accessKey) is
> correct.  However, access keys only work for elements
that are
> currently rendered.  Popup contents are rendered
"on the fly", so the
> access key isn't defined until the popup is visible,
and is removed
> again when the popup is dismissed.
>
> -e
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "TiddlyWiki" group.
To post to this group, send email to TiddlyWikigooglegroups.com
To unsubscribe from this group, send email to
TiddlyWiki-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: accessKey for <script>
user name
2007-12-28 13:05:54
> So what would be the technique to have the script
always accessible
> via access key?

make sure it is rendered somewhere that is never removed
(like in the
main menu)

also... to make it a bit cleaner to set the access key, I've
just
updated (v1.8.0)
   ht
tp://www.TiddlyTools.com/#InlineJavascriptPlugin

so that you can now simply write:
   <script label="home" title="back to
home view" key="H">
instead of using
  
</script><script>place.lastChild.accessKey="
;H";</script>
following the onclick script.

enjoy,
-e

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "TiddlyWiki" group.
To post to this group, send email to TiddlyWikigooglegroups.com
To unsubscribe from this group, send email to
TiddlyWiki-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )

Mailing lists

Newsgroups

RFC archive

ARCHIVES