Opened 9 years ago
Last modified 9 years ago
#14800 confirmed Bug
Pressing Down or Right arrow on a page with a DIV contained CKEditor, steals focus and places it in the RTE.
Reported by: | Jesse Hausler | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.0 |
Keywords: | Webkit | Cc: |
Description
Steps to reproduce
- go to a page with a DIV contained ckeditor
- tab past the editor
- press the down or right arrow key
Expected result
nothing happens, unless I specify page changes based on these key events
Actual result
Focus is moved to the nearest editor. This causes major accessibility issues for keyboard and screen reader users.
Other details (browser, OS, CKEditor version, installed plugins)
- CKE listens to the down key and left key (along with some other events) on "document" object.
- it perform a check if the browser is of type webkit before it removes the 0 width space char
- Code which does this https://github.com/ckeditor/ckeditor-dev/blob/master/core/selection.js#L720
- While removing this char it fires the focus event to make CKE focusable but never gains the focus back to original element.
- CKE can be used in 2 modes - one with iFrame contained and one with DIV contained. when iFrame contained this issues doesn't happen because "document" object that looks for event is iframe specific. Only key events fired in iFrame context gets through this code not the entire page keyevents.
- When CKE is DIV contained - key events for the entire page gets handled.
Change History (1)
comment:1 Changed 9 years ago by
Keywords: | Webkit added |
---|---|
Status: | new → confirmed |
Version: | 4.5.10 (GitHub - master) → 4.0 |
Problem can be reproduced from CKEditor 4.0 in Blink & Webkit browsers only (Chrome & Safari).