google chrome cannot cut-and-paste from odb editor pages

Issue #16 resolved
dd1 created an issue

works for firefox (all on Mac). Cannot select test for cut-and-paste on the odb editor pages, i.e. https://deapdaqgw.snolab.ca/Programs/feoV1720I01, normally we use the mouse pointer to highlight the text to cut-and-paste, in this case all text in the page refuses to be highlighted. Cut-and-paste works fine on the status page. K.O.

Comments (6)

  1. Stefan Ritt

    What do you mean by "works for firefox (all on Mac)"? cut-and-paste works for firefox, but not for chrome or what? I just tried with chrome on my mac (10.9) and it just works fine.

  2. dd1 reporter

    Reconfirmed. Stefan - try this - in mac google chrome, go to any odb editor page and try to select any text for cut-and-paste. Selected text should turn blueish colour, but it does not and nothing gets selected for "copy-paste". Now try the same with safari or firefox - the text turns blue as expected and you can paste it elsewhere. What's with this?!? K.O.

  3. Stefan Ritt

    Ok, now I see the problem, too. Funny enough, you still can select text with the cursor keys. Click with the mouse at the beginning of your selection, press and hold the shift key, then the right arrow, and you get your selection. Copy and Paste also works. I modified the JS code to remove all special handling (onBlur and onKeyDown), so the input field looks exactly like all others, and the problem is still there. So I guess it's a Chrome bug and there is nothing we can do about.

  4. dd1 reporter
    • changed status to open

    The issue goes away if I remove a line from mhttpd.js: "document.onmousemove = getMouseXY;". So I suspect there is no bug in chrome, but a bug in the getMouseXY event handler. (And why is this event handler activated even for web pages that do not care about the mouse?). Reopening the issue. K.O.

  5. Stefan Ritt

    Great that you found the reason. This function was there for historical reasons. When doing custom pages with GIF background images, you want to know where to place labels etc, so I had this function to display the cursor X-Y values in the browser's status bar. But for normal operation this is not needed so I removed it and Copy/Paste now works again. Closed the issue again.

    /Stefan

  6. Log in to comment