Project

General

Profile

Actions

Defect #36363

closed

Cannot select text in a table with a context menu available

Added by Mizuki ISHIKAWA over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
UI
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

I often try to copy the issue id or subject in the issues table.
When I try to select a range of text in the table for copying, it is reset the moment I release the mouse(mouseup event).
Perhaps it is the effect of connectMenuClearDocumentSelection() function. https://redmine.org/projects/redmine/repository/revisions/21329/entry/trunk/public/javascripts/context_menu.js#L194

Expect Result

Looking at the changelog of contextMenuClearDocumentSelection(), this process looks like code to avoid selecting a range of text when Ctrl/Shift is used to select multiple lines.
https://www.redmine.org/projects/redmine/repository/revisions/1130/entry/trunk/public/javascripts/context_menu.js#L11

If my guess is correct, there is no need to reset the text range selection with contextMenuClearDocumentSelection() when only one line is selected.


Files

result.gif (569 KB) result.gif Mizuki ISHIKAWA, 2021-12-28 07:40
expect.gif (204 KB) expect.gif Mizuki ISHIKAWA, 2021-12-28 07:40
Actions

Also available in: Atom PDF