Bug 62388

Summary: First EventListener "keypress" Ignored on JavaScript toggled contentEditable DIV
Product: WebKit Reporter: Swivelgames <swivelgames>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: http://code.google.com/p/chromium/issues/detail?id=77624

Swivelgames
Reported 2011-06-09 11:38:22 PDT
URLs (if applicable) : http://files.swivelgames.com/source/chromiumbug_recreation/chromium_issue.html Browsers tested: Safari 5: FAIL Chrome 11: FAIL Firefox 4: OK IE 8: OK What steps will reproduce the problem? 1. Open URL above in browser 2. Click editable DIV ("Here's some content...") 3. Type 4. Repeat step 3 until the bolded text changes. What is the expected result? > The counter should increase every time a key > is pressed while the DIV is in focus. What happens instead? > The first keypress is ignored. Every time after > the first key is pressed, the span is updated. I just found a band-aid workaround for this issue. By using focus() after making contentEditable `true`, Chromium notices the first event. http://files.swivelgames.com/source/chromiumbug_recreation/chromium_issue_bandaid.html
Attachments
Alexey Proskuryakov
Comment 1 2011-06-10 21:29:55 PDT
*** This bug has been marked as a duplicate of bug 61310 ***
Note You need to log in before you can comment on or make changes to this bug.