Bug 841064

Summary: Unable to highlight text segments in search results of search/replace function
Product: [Retired] Zanata Reporter: Hedda Peters <hpeters>
Component: Component-UIAssignee: David Mason <damason>
Status: CLOSED CURRENTRELEASE QA Contact: Ding-Yi Chen <dchen>
Severity: medium Docs Contact:
Priority: high    
Version: 1.6.1CC: aeng, sflaniga, zanata-bugs
Target Milestone: ---   
Target Release: 2.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: 2.0.3-SNAPSHOT (20121116-0019) Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-26 03:46:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Hedda Peters 2012-07-18 02:42:21 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
Build Identifier: 

When using the search/replace function, I am unable to highlight text segments within the displayed results. 

To highlight I would usually point the mouse to the beginning of the desired text segment, click & hold, while moving to the end of the desired text segment. But as soon as I let go of the mouse button at this point, the highlighting of the text disappears. Instead, this caused the checkbox for this entry to be selected.

I cannot highlight (or, therefore, copy & paste) excerpts from search results.

Reproducible: Always

Comment 1 Runa Bhattacharjee 2012-07-30 12:10:53 UTC
Assigning to Zanata Dev team for evaluation

Comment 2 Sean Flanigan 2012-07-31 02:01:13 UTC
Let's just use the checkbox for selection, so that copy and paste will work.

Comment 3 Sean Flanigan 2012-11-09 02:18:06 UTC
Is this caused by "click to select", or by codemirror's X selection problems on Firefox?

Comment 4 David Mason 2012-11-09 03:33:46 UTC
This is caused by "click to select" and should be a fairly easy fix, just removing a little event handling code.

Comment 5 David Mason 2012-11-13 02:55:30 UTC
Fixed in 2.0 and merged to 2.1.

Selection will now only occur when clicking on (or very near) checkboxes on the left of the row.

See: https://github.com/zanata/zanata/commit/7a46cbe15e8287f24dbddf957975894f06d09886

Comment 6 Ding-Yi Chen 2012-11-16 04:22:25 UTC
VERIFIED with
Zanata version 2.1-SNAPSHOT (20121112-1056) 
and Zanata version 2.0.3-SNAPSHOT (20121116-0019)

Browser:
Google Chrome: 22.0.1229.94
Chromium: 21.0.1180.89 

Firefox 16.0.2
Firefox ESR: 10.0.10