[rfc][icedtea-web][policyeditor] Disable "paste" until "copy" is performed

Jiri Vanek jvanek at redhat.com
Mon Jun 30 10:22:08 UTC 2014


On 06/27/2014 05:27 PM, Andrew Azores wrote:
> Hi,
>
> This patch adds a check in the "paste" button action so that the dialog prompting the user for the new URL to paste with does not appear if a codebase has not been previously copied. This would also guard against the dialog appearing when a keyboard shortcut is used to paste. Additionally, the "paste" button in the Edit menu is now disabled until "copy" has been pressed for the first time.
>
> Thanks,
>
This seems a bit wrong to me.

What if user copied it from somewhere else?

I was not checking the original "add copy and paste" functinality but.

What is codebase?

If it is plain string, then you definitely should not do this.
  - Just check if something is in clipboard, and if it is string, enable paste.

If it si not string, have it its own flavour, or syntax which cna be recognized?
  - If so, and it was recognized as codebase, please, enable paste it.

Otherwise disable paste, and if ctrl+v is forced,, then show error.


What do you think?

   J.


More information about the distro-pkg-dev mailing list