xpra icon
Bug tracker and wiki

Opened 11 months ago

Closed 6 months ago

#1689 closed defect (fixed)

firefox does not emit clipboard events

Reported by: Antoine Martin Owned by: alas
Priority: major Milestone: 2.2
Component: html5 Version: trunk
Keywords: Cc:

Description

Splitting this from ticket:1461#comment:15.
Reproducible with Firefox on any platform.

This sounds like Capturing a Paste Event in Firefox: The paste event has been supported in major browsers for some time now, but interestingly Firefox doesn’t trigger the event unless the user’s cursor is currently focussed in an editable region.

Unfortunately, the Firefox bug is meant to have been fixed already and sprinkling contenteditable=true in every div doesn't make any difference. Neither does listening for clipboard events on all contenteditable elements as suggested here: https://stackoverflow.com/a/19269040/428751.
More answers here: JavaScript get clipboard data on paste event (Cross browser)

Attachments (1)

test.html (7.7 KB) - added by Antoine Martin 11 months ago.
page similar to the client, clipboard works here…

Download all attachments as: .zip

Change History (4)

Changed 11 months ago by Antoine Martin

Attachment: test.html added

page similar to the client, clipboard works here...

comment:1 Changed 11 months ago by Antoine Martin

Owner: changed from Antoine Martin to alas

r17537 fixes this by not using jquery for keyboard events, which somehow fixes the clipboard with Firefox (yes, it did take me a while to figure that out)

Maybe we should try to not use jquery quite so much: #1712.

A few improvements were made along the way:

  • r17531: remove redundant code
  • r17530: better logging and redirection
  • r17528 + r17529: refactoring, move javascript functions to common location, split client intialization into more manageable functions
  • r17527 fix audio api warnings

comment:2 Changed 11 months ago by Antoine Martin

Milestone: 3.02.2

comment:3 Changed 6 months ago by Antoine Martin

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.