NEW 39689
Moving focus in Cmd+V keydown event handler should redirect paste
https://bugs.webkit.org/show_bug.cgi?id=39689
Summary Moving focus in Cmd+V keydown event handler should redirect paste
Dale Harvey
Reported 2010-05-25 15:00:54 PDT
Have some text on the clipboard, press CMD+V without the textarea on the demo being in focus, it is supposed to focus textarea on keydown and in turn capture the pasted text, instead pasted text is lost but textarea is focused. works on chrome + firefox and apparently snow leopard, broken on snow snow leopard
Attachments
test case (623 bytes, text/html)
2010-05-26 11:56 PDT, Alexey Proskuryakov
no flags
Alexey Proskuryakov
Comment 1 2010-05-26 11:55:38 PDT
This worked for me on Leopard, but didn't work on SL.
Alexey Proskuryakov
Comment 2 2010-05-26 11:56:28 PDT
Created attachment 57123 [details] test case Attaching the same test, in case it expires from pastebin.
Alexey Proskuryakov
Comment 3 2010-05-26 11:58:19 PDT
Of course, this shouldn't work when focus moves cross-frame.
Mark Kristensson
Comment 4 2012-01-09 14:20:53 PST
This bug also occurs on Safari on Lion and appears to be worse than on Snow Leopard. On SL, you could change the focus in a document/body level beforePaste event (to a text area/field) and then the text would get pasted into that control. However, the beforePaste event no longer fires at the document/body level in Safari (but does, as does the paste event, in Chrome).
Alexey Proskuryakov
Comment 5 2012-01-09 17:08:57 PST
The new part is now tracked as bug 75891.
Note You need to log in before you can comment on or make changes to this bug.