disabling double-click to edit?

109 views
Skip to first unread message

Erik Anderson

unread,
Jan 23, 2007, 4:19:18 PM1/23/07
to TiddlyWiki
Greetings all - I'm running v2.1.3 and am wondering if there's any easy
way to disable the double-click to edit feature. I have a rather nasty
habit of getting rather "clicky" when using the computer and often
while reading, fulfill my need to fidget by clicking idlely on the
mouse. As such, I end up inadvertantly editing tiddlers frequently.

Thanks!
-Erik Anderson

Eric Shulman

unread,
Jan 23, 2007, 5:29:48 PM1/23/07
to TiddlyWiki
> Greetings all - I'm running v2.1.3 and am wondering if there's any easy
> way to disable the double-click to edit feature.

In the ViewTemplate tiddler (which starts out as a built-in 'shadow'
tiddler), find this line:

<div class='toolbar' macro='toolbar closeTiddler closeOthers
+editTiddler sendTiddler permalink references jump'></div>

and change "+editTiddler" to just "editTiddler" (i.e., remove the "+").
The "+" indicates which action on the toolbar will be triggered by the
double-click. If no item has the "+", then no action is performed

Alternatively, if you only want to disable double-clicking in specific
selected tiddlers, you can include a little bit of inline javascript
directly in that tiddler's content that will remove the ondblclick
handling for that tiddler:

http://www.TiddlyTools.com/#DoubleClickDisable
(note: requires http://www.TiddlyTools.com/#InlineJavascriptPlugin)

To quickly incorporate this script into any desired tiddler, use:
<<tiddler DisableDoubleClick>>

HTH,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

Eric Shulman

unread,
Jan 23, 2007, 5:42:45 PM1/23/07
to TiddlyWiki
> To quickly incorporate this script into any desired tiddler, use:
> <<tiddler DisableDoubleClick>>

err, that should be: <<tiddler DoubleClickDisable>>

-e

Erik Anderson

unread,
Jan 23, 2007, 9:14:48 PM1/23/07
to Tiddl...@googlegroups.com
On 1/23/07, Eric Shulman <elsd...@gmail.com> wrote:
>
> In the ViewTemplate tiddler (which starts out as a built-in 'shadow'
> tiddler), find this line:
>
> <div class='toolbar' macro='toolbar closeTiddler closeOthers
> +editTiddler sendTiddler permalink references jump'></div>
>
> and change "+editTiddler" to just "editTiddler" (i.e., remove the "+").
> The "+" indicates which action on the toolbar will be triggered by the
> double-click. If no item has the "+", then no action is performed

Awesome - worked perfectly. Thanks!

-Erik

Reply all
Reply to author
Forward
0 new messages