Cuperino / QPrompt-Teleprompter

Teleprompter software for all video creators. Built with ease of use, productivity, control accuracy, and smooth performance in mind.
https://qprompt.app
GNU General Public License v3.0
355 stars 22 forks source link

Simplify multi-click text selection #164

Closed videosmith closed 1 year ago

videosmith commented 1 year ago

Bug Description Double clicking on text to select it does not produce the expected results.

Steps to Reproduce

  1. Double-click on "Thank" in Welcome script, word highlights as expected. 1

  2. Click once on "Thank" immediately to deselect it, highlights sentence instead. 2

  3. Click once on "Thank" immediately again deselects that sentence, highlights the next sentence. 3

  4. Click once on "Thank" immediately again, pattern continues. 4

  5. Another issue: Clear all selection/reload Welcome script, double-click on "QPrompt". Word highlights as expected. 5

  6. <(This action is intermittant.) Clicking once on "QPrompt" (or off of the word) does not deselect. Instead click-hold-drag on "QPrompt" results in individually selected letters depending on location and drag direction. Operator must manually drag to deselect all letters in "Qprompt". 6

Expected behavior Should select/deselect like behaviors in word processors

Device information

7

Cuperino commented 1 year ago

Some of this is intended behavior. Text selection is handled by Qt. I could theoretically change how it works, but I don't want to get into that. Maybe later, when I finally add fill support for images, which will require support for dragging.

Click once on "Thank" immediately to deselect it, highlights sentence instead.

Clicking a third time after a double click, without moving the mouse is meant to select the current paragraph. This is the intended behavior, following the likes of LibreOffice, and Mozilla Firefox. The main difference is that the third click is usually tied to a short timer, but in QPrompt no such timer exists.

To deselect, move the cursor to point elsewhere and then click. The mouse must point at letters different from the previous click.

Click once on "Thank" immediately again deselects that sentence, highlights the next sentence.

Automatic selection of the next paragraph is another feature of Qt, but unlike the previous one, this was not intended behavior.

Another issue: Clear all selection/reload Welcome script, double-click on "QPrompt". Word highlights as expected.

Clicks on Markers behave differently because markers are are html anchors in reality, and thus Qt treats them as such. Regarding its behavior, I can see why we wouldn't want it to be different.