Add copy text on contex menu. #1541

Merged
dan1d merged 1 commit from 1538 into master 2018-06-04 22:31:36 +02:00
dan1d commented 2018-06-04 02:24:02 +02:00 (Migrated from github.com)

Closes #1538 , So when PR got merged It introduced a bug which I didn't test (#1538) , this PR add the context menu event to be listened on the app component inside react rather than doing document.addEventListener, the function onContextMenu can call event.preventDefault && event.stopPropagation on child elements and that will cancel the call to open the menu handled by app component(parent).

screenshot from 2018-06-03 21-18-58

Right click on video to copy a link without text being selected(copy is disabled)
screenshot from 2018-06-03 21-24-18

Right click on video to copy a link with text selected:
screenshot from 2018-06-03 21-25-30

Closes #1538 , So when [PR](https://github.com/lbryio/lbry-app/pull/1486) got merged It introduced a bug which I didn't test (#1538) , this PR add the context menu event to be listened on the `app` component inside react rather than doing `document.addEventListener`, the function `onContextMenu` can call `event.preventDefault` && `event.stopPropagation` on child elements and that will cancel the call to open the menu handled by `app` component(parent). ![screenshot from 2018-06-03 21-18-58](https://user-images.githubusercontent.com/3293616/40892950-2c629a20-6774-11e8-8fa6-b54a9ae45b5b.png) Right click on video to copy a link without text being selected(copy is disabled) ![screenshot from 2018-06-03 21-24-18](https://user-images.githubusercontent.com/3293616/40892976-8a61eb08-6774-11e8-869e-56e6a1ca95ba.png) Right click on video to copy a link with text selected: ![screenshot from 2018-06-03 21-25-30](https://user-images.githubusercontent.com/3293616/40892986-a8c1b984-6774-11e8-8c39-b3efe0e28d40.png)
neb-b (Migrated from github.com) approved these changes 2018-06-04 16:51:31 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#1541
No description provided.