Opened 12 years ago
Closed 12 years ago
#10196 closed Bug (fixed)
Context menus not displaying with keyboard shortcuts when autogrow is enabled
Reported by: | Teresa Monahan | Owned by: | Piotrek Koszuliński |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.0.3 |
Component: | General | Version: | 4.0 |
Keywords: | IBM | Cc: | Damian, Satya Minnekanti, irinauru, fabrizio |
Description
To Reproduce:
- Open plugins/autogrow/samples/autogrow.html in a browser.
- Insert some content which is wide enough to introduce a horizontal scroll bar e.g. a table with a width of 1500px.
- Use the keyboard shortcut to open the context menu: Ctrl+Shift+F10
Problem: The context menu does not display. Occasionally it displays very briefly and then disappears again.
This is reproducible since commit 7c5782a where the following code was added to plugins/floatpanel/plugin.js:
editor.on( 'resize', function() { this.hide(); }, this );
In v3 and v4, the resize event gets fired when the keyboard shortcut keys are pressed. Therefore when the code above was added in v4, this forces the floatpanel to be hidden. Do you know why this code was added to the floatpanel plugin? Can it be safely reverted?
Attachments (1)
Change History (10)
comment:1 follow-up: 2 Changed 12 years ago by
Status: | new → confirmed |
---|---|
Version: | 4.0.2 → 4.0 |
comment:2 Changed 12 years ago by
Can this ticket please be targeted for the 4.0.3 milestone? This is an accessibility issue which is a very high priority for us. It makes it impossible for keyboard-only users to use context menus in the given scenario.
comment:3 Changed 12 years ago by
Milestone: | → CKEditor 4.0.3 |
---|---|
Owner: | set to Olek Nowodziński |
Status: | confirmed → assigned |
comment:4 Changed 12 years ago by
Status: | assigned → review |
---|
Created branch t/10196 with a fix. The problem was the horizontal scrollbar's height being considered when retrieving the height of the view pane.
comment:5 Changed 12 years ago by
Status: | review → review_failed |
---|
Patch seems to fix the issue on FF and Chrome and IE8 which I so far tested.
However, I found an issue which it unfortunately introduces. On FF:
- Open autogrow sample.
- Write few paragraphs in 2nd editor (with max height) so vertical scroll appears.
- Scroll to the bottom (it doesn't have to be the end, but it's more probable to reproduce this issue there).
- Try to place caret somewhere in the text by clicking.
- Content is scrolled to the top.
comment:6 Changed 12 years ago by
PS. In fact I'm afraid that this patch may introduce more similar issues, because setting overflow-x to hidden may for example cause automatic scroll to the left.
Can't we fix this issue by blocking incorrect resize event? Don't we know when it should be really fired.
comment:7 Changed 12 years ago by
Owner: | changed from Olek Nowodziński to Piotrek Koszuliński |
---|---|
Status: | review_failed → review |
I pushed t/10196b with different fix. It prevents calling editor.resize() when the height hasn't changed (like when opening context menu).
comment:8 Changed 12 years ago by
Status: | review → review_passed |
---|
comment:9 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
Fixed on master with git:18a9148.
The git:7c5782a was the patch for #9465 (fixed in 4.0). It seems to be ok to revert it in order to temporarily fix this issue.
This issue is reproducible from 4.0.