Ticket #8874 (closed Bug: fixed)

Opened 2 years ago

Last modified 2 years ago

Shift+tab causes errors and incorrect caret and focus movements

Reported by: Reinmar Owned by: garry.yao
Priority: Normal Milestone: CKEditor 3.6.3
Component: General Version:
Keywords: Cc:

Description (last modified by Reinmar) (diff)

  1. Open replacebyclass.html sample
  2. Place cursor somewhere in the paragraph
  3. Press Shift+tab
  • On Chrome there's an error on console and caret moves to the beginning of the editable.
  • On Firefox there's an error and focus is lost.
  • Opera ignores shift and moves focus to submit button.
  • On IE8 editor loses focus.

Some of these incorrect behaviors (IE8 & Opera) are old, but error on Chrome&Fx is introduced by r7372, so it's a regression from 3.6.2.

Related issue: #8502

Attachments

8874.patch (4.1 KB) - added by garry.yao 2 years ago.
8874_2.patch (706 bytes) - added by garry.yao 2 years ago.

Change History

comment:1 Changed 2 years ago by Reinmar

  • Description modified (diff)

comment:2 Changed 2 years ago by j.swiderski

  • Status changed from new to confirmed

Confirmed for Chrome and Firefox.


As for IE8 and Opera IMO there is no error.
In Opera tab key goes only through editor instances and submit button and Shift+tab does the same the opposite way. Try with replacebycode sample.

In IE8 tab keys also go through browser's toolbar buttons so the focus is not lost it is moved back to those buttons.

Changed 2 years ago by garry.yao

comment:3 Changed 2 years ago by garry.yao

  • Owner set to garry.yao
  • Status changed from confirmed to review

The patch eliminates the error while it doesn't bring any change to the focus manipulation as expected in #8502.

comment:4 Changed 2 years ago by fredck

  • Status changed from review to review_failed

Let's make the patch very small and simple, by simply adding that check inside getPrevious, without making other changes, not even adding a new dedicated constant.

Changed 2 years ago by garry.yao

comment:5 Changed 2 years ago by fredck

  • Status changed from review_failed to review_passed

comment:6 Changed 2 years ago by garry.yao

  • Status changed from review_passed to closed
  • Resolution set to fixed

Fixed with [7457].

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy