On Oct 29, 2014, at 1:33 AM, Jerry <lancebo...@qwest.net> wrote: > > On Oct 29, 2014, at 1:30 AM, Jerry <lancebo...@qwest.net> wrote: > >> >> On Oct 28, 2014, at 11:13 PM, Scott Kostyshak <skost...@lyx.org> wrote: >> >>> On Tue, Oct 28, 2014 at 11:24 PM, Jerry <lancebo...@qwest.net> wrote: >>>> >>>> On Oct 28, 2014, at 4:03 AM, Scott Kostyshak <skost...@lyx.org> wrote: >>>> >>>>> I have a patch that enables "word selection mode" on double click. It >>>>> seems to work well. The patch is here: >>>>> >>>>> http://www.lyx.org/trac/attachment/ticket/7890/0001-Fix-9160-and-7890.patch >>>>> >>>>> The only major issue is that when dragging to the left, you cannot >>>>> highlight the first word. Does anyone have an idea for where to fix >>>>> this? >>>>> >>>>> The following patch might give a clue as to where the problem is. When >>>>> applied, you can select the first word. It is not meant to be taken as >>>>> a correct patch: >>>>> >>>>> http://www.lyx.org/trac/attachment/ticket/7890/0002-HACK-just-to-show-where-the-problem-is.patch >>>>> >>>>> Scott >>>> >>>> Does this mean that upon a click-and-a-half, dragging extends the >>>> selection by whole words? >>> >>> Yes. See http://www.lyx.org/trac/ticket/7890 >>> >>> Scott >> >> I just looked at the patch, and I not understanding it but recalling how LyX >> currently works, I should add that after a multi-word selection has been >> made, either in character-selection mode (including possibly partial words) >> or word-selection mode, there should be no cursor. Gone. Only the selected >> text, highlighted. Lyx currently shows selected text _and_ a blinking >> cursor, which is wrong by Mac standards and arguably just wrong. The reason, >> I suppose, is that having selected text and a blinking cursor present >> confusing signals: where will text appear if I type now? The answer is, of >> course, that all of the selected text will be replaced with the newly typed >> text, and the replacement will begin as soon as the first new character is >> typed. Thus, any blinking cursor before typing new text is sending the wrong >> message and is also irrelevant. >> >> Jerry > > And of course the cursor reappears to the right side of the first typed new > character. > > Jerry > And finally.... Why doesn't Qt handle this more or less automatically? I don't recall seeing this problem on other Qt-based text editing programs.
Jerry