|Summary:||Moving focus in Cmd+V keydown event handler should redirect paste|
|Product:||WebKit||Reporter:||Dale Harvey <dale>|
|Component:||WebCore Misc.||Assignee:||Nobody <webkit-unassigned>|
|Severity:||Normal||CC:||ap, mkbitbucket, sam|
|Version:||528+ (Nightly build)|
|OS:||OS X 10.6|
Description Dale Harvey 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
Comment 1 Alexey Proskuryakov 2010-05-26 11:55:38 PDT
This worked for me on Leopard, but didn't work on SL.
Comment 2 Alexey Proskuryakov 2010-05-26 11:56:28 PDT
Created attachment 57123 [details] test case Attaching the same test, in case it expires from pastebin.
Comment 3 Alexey Proskuryakov 2010-05-26 11:58:19 PDT
Of course, this shouldn't work when focus moves cross-frame.
Comment 4 Mark Kristensson 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).