WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 61310
62388
First EventListener "keypress" Ignored on JavaScript toggled contentEditable DIV
https://bugs.webkit.org/show_bug.cgi?id=62388
Summary
First EventListener "keypress" Ignored on JavaScript toggled contentEditable DIV
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
Add attachment
proposed patch, testcase, etc.
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.
Top of Page
Format For Printing
XML
Clone This Bug