cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

possible to double click to select word in AT?

palsop
1-Visitor

possible to double click to select word in AT?

I have to click and drag to select a word, previous version of arbortext would let you doubleclick to select a word.


Is this perhaps a hidden preference setting?Any ideas? (we are version 5.3)

4 REPLIES 4


I don't have 5.3, but in 5.4 double-clicking a word does indeed select it.

This happens because the default keymap maps "Double+M1" to
"LeftDoubleClick", an alias for the non-documented function mouse_link():

function mouse_link()
{
# this used to do execute(link mouse) - I removed that to
# fix bug 20184
link mouse
if ($status)
{
# The usual fall back is to select the word, but if we're in an
# empty cell, that would select the cell tag markup which is not
# expected, so we'll simply do nothing for that case.
if (oid_is_empty_table_cell() != h::tblNullToid)
{
return;
}
mark_word(1,1,0); # if link fails, then start marking words
}
}

Obviously word selection happens only if the "link" command fails
(i.e. the predefined variable "status" is non-zero). Maybe your document type
implements some link logic?

/ K J

palsop
1-Visitor
(To:palsop)

You are definately onto something,


I tested your theory aboutit being disabled and found thatit does NOT work in a dita xml file, but DOES work in a j2008 sgml file.


Thanks.

We are using DITAXML with 5.4 and double clicking a word selectsthat word. This might be a version issue.

palsop
1-Visitor
(To:palsop)

So it ends up being a bug in our content managment system for both versions 5.3 and 5.4.


Something in the codeisoverriding the default behaviour.

Announcements

Top Tags