[jbosstools-issues] [JBoss JIRA] (JBIDE-20705) Click on a webhook URL in Webhook triggers shell automatically copy webhook to clipboard

Viacheslav Kabanovich (JIRA) issues at jboss.org
Wed Feb 3 01:38:00 EST 2016


    [ https://issues.jboss.org/browse/JBIDE-20705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13157998#comment-13157998 ] 

Viacheslav Kabanovich edited comment on JBIDE-20705 at 2/3/16 1:37 AM:
-----------------------------------------------------------------------

As a similar example, github repository web pages have uri text field with button "Copy to clipboard", the button does what it promises and text can be accessed for selecting and copying manually any part of uri.
If current behaviour - copy both by button and by mouse click - is considered ok, this issue should be rejected. I would vote for removing the mouse listener.



was (Author: scabanovich):
The mouse listener added to text field does it: 
{code}
    uriText.addMouseListener(onClickUriText(uriText));
{code}
It calls copyToClipBoard in the same way as the button to the right of the text field. But why?
As a similar example, github repository web pages have uri text field with button "Copy to clipboard", the button does what it promises and text can be accessed for selecting and copying manually any part of uri.
If current behaviour - copy both by button and by mouse click - is considered ok, this issue should be rejected. I would vote for removing the mouse listener.


> Click on a webhook URL in Webhook triggers shell automatically copy webhook to clipboard
> ----------------------------------------------------------------------------------------
>
>                 Key: JBIDE-20705
>                 URL: https://issues.jboss.org/browse/JBIDE-20705
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.3.0.CR1
>            Reporter: Marián Labuda
>             Fix For: 4.3.x
>
>         Attachments: webhook.png
>
>
> In Webhook triggers shell, opened via context menu of a build config, there are 2 text widgets containing generic and github webhook. 
> !webhook.png!
> After click on a webhook text, the whole text is selected and its automatically copied to clipboard. There is also a notification text upon copying to clipboard shown close to the text widget containing a webhook URL. 
> Webhook URL should be copied only after click on a button with label "Copy to clipboard" which is located next to the text field containing a webhook URL. Otherwise this button miss reason to exists and it is a bit annoying for me to have URL automatically selected and copied to clipboard every time I click on a text.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jbosstools-issues mailing list