Opened 13 years ago
Closed 13 years ago
#8874 closed Bug (fixed)
Shift+tab causes errors and incorrect caret and focus movements
Reported by: | Piotrek Koszuliński | Owned by: | Garry Yao |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.6.3 |
Component: | General | Version: | |
Keywords: | Cc: |
Description (last modified by )
- Open replacebyclass.html sample
- Place cursor somewhere in the paragraph
- 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 (2)
Change History (8)
comment:1 Changed 13 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 13 years ago by
Status: | new → confirmed |
---|
Changed 13 years ago by
Attachment: | 8874.patch added |
---|
comment:3 Changed 13 years ago by
Owner: | set to Garry Yao |
---|---|
Status: | confirmed → review |
The patch eliminates the error while it doesn't bring any change to the focus manipulation as expected in #8502.
comment:4 Changed 13 years ago by
Status: | review → 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 13 years ago by
Attachment: | 8874_2.patch added |
---|
comment:5 Changed 13 years ago by
Status: | review_failed → review_passed |
---|
comment:6 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
Fixed with [7457].
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.