Skip to main content
1-Visitor
January 30, 2012
Question

possible to double click to select word in AT?

  • January 30, 2012
  • 4 replies
  • 1348 views

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

    1-Visitor
    January 30, 2012

    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

    palsop1-VisitorAuthor
    1-Visitor
    January 30, 2012

    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.

    1-Visitor
    January 31, 2012

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

    palsop1-VisitorAuthor
    1-Visitor
    February 3, 2012

    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.