Opened 8 years ago

Last modified 8 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

  1. go to a page with a DIV contained ckeditor
  2. tab past the editor
  3. 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)

  1. CKE listens to the down key and left key (along with some other events) on "document" object.
  1. it perform a check if the browser is of type webkit before it removes the 0 width space char
  1. Code which does this https://github.com/ckeditor/ckeditor-dev/blob/master/core/selection.js#L720
  1. While removing this char it fires the focus event to make CKE focusable but never gains the focus back to original element.
  1. 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.
  1. When CKE is DIV contained - key events for the entire page gets handled.

Change History (1)

comment:1 Changed 8 years ago by Jakub Ś

Keywords: Webkit added
Status: newconfirmed
Version: 4.5.10 (GitHub - master)4.0

Problem can be reproduced from CKEditor 4.0 in Blink & Webkit browsers only (Chrome & Safari).

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy