Ctrl-C copy from displayed data fields

In the typical screen below, I can select text and then use Ctrl-C to copy data from the "display" areas - ie those highlighted - but not from the yellow data fields (ie Id, Last Name, Title, etc). I can copy from these fields but only (eg in Firefox) by right-clicking and then left clicking Copy in the resulting sub-menu.

The yellow data fields become "Ctrl-C'able" only when they are opened for editing.

It it possible to make the yellow data fields "Ctrl-C'able" when they are in display mode?

Regards, Tim

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Ctrl-C copy from displayed data fields

I'm not sure why this isn't possible in Firefox. It works in Chrome.

The fields are html input fields, that have been set read-only.

Have a look at http://kb.mozillazine.org/Clipboard_not_working and see if any suggestions there help.

Re: Ctrl-C copy from displayed data fields

If I inspect the DOM in the Firefox debugger, read-only input fields look like:

<input readonly="" value="Fubar" tabindex="-1" style="border: 1px inset rgb(240, 230, 140); color: rgb(0, 0, 0); background-color: rgb(255, 255, 153); font-family: arial,sans-serif; font-size: 12px; width: 30ex;" id="c_738" type="text">

If I change the readonly="" to readonly="readonly" (as per XHTML), the text is copyable.

Re: Ctrl-C copy from displayed data fields

Tim A - this would appear to be a Firefox bug - see https://bugzilla.mozilla.org/show_bug.cgi?id=253870 - especially the last 3 posts (from 2014-03-16 onwards).  Note the bit about 'don't use readonly as a workaround'.

Recommendations: a) don't try to fix this in OpenVPMS; b) Tim G should switch to Chrome as his preferred browser - or remember to use Right-Click the C in place of Ctrl-C

Regards, Tim G

 

 

Syndicate content