Opened 14 years ago
Closed 14 years ago
#7347 closed Bug (fixed)
In page key handlers are catching ENTER key on toolbar buttons
Reported by: | Rajasimhan | Owned by: | Frederico Caldeira Knabben |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.5.4 |
Component: | UI : Dialogs | Version: | 3.2 |
Keywords: | Oracle | Cc: | senthil.kumaran@…, rajasimhan.baskar@… |
Description
Ticket #4269 addressed the following issue - "Esc" and "Enter" keystrokes are not handled when a dialogue box is opened which causes the form post automatically.
But this issue is now re occurring in 3.5.2. Please check this and provide a fix.
Because of this issue whenever any plugins with a modal pop up window like Image Plugin, Links Plugin, Find & Replace are clicked either the window disappears immediately after it opens or the browser hangs as the JS goes in an infinite loop.
Attachments (4)
Change History (14)
comment:1 Changed 14 years ago by
Status: | new → pending |
---|
comment:2 follow-up: 3 Changed 14 years ago by
Cc: | rajasimhan.baskar@… added |
---|
Hi,
Kindly bear with the delay. Please copy the attached file 'postissue.html' into the ckeditor\_samples folder.
- Open the postissue.html. Editor will be rendered. Click inside the text area and press Alt-F10.
- Tab till you reach 'Find and Replace' and press the enter key.
- Form post will happen ( you would be taken to the 'sample_posteddata.php').
Browsers: This happens in FireFox and IE. OS: Windows. CKEditor Version: 3.5.2
comment:3 Changed 14 years ago by
Replying to Rajasimhan:
Hi,
Kindly bear with the delay. Please copy the attached file 'postissue.html' into the ckeditor\_samples folder.
- Open the postissue.html. Editor will be rendered. Click inside the text area and press Alt-F10.
- Tab till you reach 'Find and Replace' and press the enter key.
- Form post will happen ( you would be taken to the 'sample_posteddata.php').
Browsers: This happens in FireFox and IE. OS: Windows. CKEditor Version: 3.5.2
https://dev.ckeditor.com/attachment/ticket/7347/postissue.html
Changed 14 years ago by
Attachment: | postissue.2.html added |
---|
comment:4 Changed 14 years ago by
Status: | pending → confirmed |
---|---|
Version: | 3.5.2 → 3.2 |
Has happened from CKEditor version 3.2
comment:5 Changed 14 years ago by
Summary: | Fix for the Ticket #4269 has regressed. → In page key handlers are catching ENTER key on toolbar buttons |
---|
Note that this issue is not related to #4269, which instead was addressing these keys on dialogs. This new ticket is talking about ENTER on the toolbar.
Please note that this issue is more related to an issue with your code than with the editor. The fact is that ENTER is happening on the page and your code is catching all instead of just the things you need to catch. We had already discussed this when talked about #4269 so it's not worth reopening this talk, but considering that this is an issue with your code and not CKEditor, it has lower priority.
comment:6 Changed 14 years ago by
This happens since [6303].
The dialog cover is created on keydown. At that point, the focus is set to it. So now the keyup event is caught by the dialog cover, not by the editor container.
This has nothing to do with CKEditor API features though.
Changed 14 years ago by
Attachment: | 7347.patch added |
---|
comment:7 Changed 14 years ago by
Milestone: | → CKEditor 3.5.4 |
---|---|
Owner: | set to Frederico Caldeira Knabben |
Status: | confirmed → review |
It's enough to prevent key events on the cover at this point.
comment:8 Changed 14 years ago by
Component: | General → UI : Dialogs |
---|
comment:9 Changed 14 years ago by
Status: | review → review_passed |
---|
comment:10 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
Fixed with [6676].
We were unable to reproduce the problem. Everything seems to be fine. Esc key behaves like Cancel button and Enter behaves like OK button. We couldn't also get any infinite loops or browser crashes.
Could you provide us with more details, like what OS are you using, which browsers does the issue concern? We would also be grateful for a detailed step by step scenario on how to reproduce the bug.