It's important to avoid making assumptions about the expected layout and usage of macros and commands. TiddlyWiki documents can be extensively customized, so there is no single keystroke use-model for macros and toolbar commands.
For example, frequently used commands are often embedded in several places within the document's PageTemplate content to provide context- specific access to selected features. In addition, custom ViewTemplate and/or EditTemplate definitions can include multiple toolbar elements, each containing different toolbar items. Conversely, there is no *requirement* for TW templates to even define 'sidebar' or 'toolbar' elements at all, so the assumption that specific macros or commands are present in the document is not a reliable one. Regardless of any custom layout concerns, an even more fundamental problem exists: access key handling is inconsistently-implemented on different browsers. For example, if an access key is defined on an element that is currently hidden (i.e., element.style.display='none'), FireFox will not trigger the associated event handler, but IE will (though it may also throw an error if the access key attempts to move focus to the hidden element). Instead of using browser-based access keys, I suggest you take a look at this plugin: http://tiddlyspot.com/BradleyMeck/#CaptureKeysMacro which provides an API for easily binding keystrokes (with optional ctrl/alt/shift modifiers) to any desired JS function. With this plugin, you may be able define all your desired access key assignments simply by creating a custom CaptureKeysMacroConfig with the appropriate calls to the CaptureKeysMacro API. See Bradley's site for an example of such a config tiddler... (note: ignore the 'expired graphics' on his site) enjoy, -e --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/tiddlywikidev?hl=en -~----------~----~----~----~------~----~------~--~---
