Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Space key not handled in close button #200

Open
mlewand opened this issue May 18, 2016 · 7 comments
Open

Space key not handled in close button #200

mlewand opened this issue May 18, 2016 · 7 comments

Comments

@mlewand
Copy link
Contributor

mlewand commented May 18, 2016

  1. Open Accessibility Checker manual test.
  2. Open AC by pressing it's icon.
  3. Press shift + tab twice to move the focus on close button.
  4. Press space.

Expected

AC gets closed.

Actual

Key event does not get handled, and default browser behavior apply (scrolling the page).

@mlewand mlewand added this to the 1.0.1 milestone May 18, 2016
@Tade0 Tade0 self-assigned this Jun 1, 2016
@Tade0 Tade0 mentioned this issue Jun 2, 2016
@Tade0 Tade0 added the review? label Jun 2, 2016
@mlewand
Copy link
Contributor Author

mlewand commented Jun 6, 2016

@f1ames could you please review this one?

@mlewand mlewand assigned f1ames and unassigned Tade0 Jun 6, 2016
@f1ames
Copy link
Contributor

f1ames commented Jun 6, 2016

@Tade0 There are still unanswered comments from @mlewand, I also added one myself, please take a look there - #206.

@f1ames f1ames assigned Tade0 and unassigned f1ames Jun 6, 2016
@f1ames f1ames added review- and removed review? labels Jun 6, 2016
@Tade0
Copy link
Contributor

Tade0 commented Jun 14, 2016

A curious thing occurred to me: the listeners that I've been manipulating seem not to be the ones that actually do the job. Investigating now what's happening here.

@Tade0
Copy link
Contributor

Tade0 commented Jun 15, 2016

There's an issue with this issue, take a look at these two branches:
https://github.com/cksource/ckeditor-plugin-a11ychecker/tree/t/200-redundant
https://github.com/cksource/ckeditor-plugin-a11ychecker/tree/t/200-broken

If you comment out the listeners in ui/Viewer, you can still use Return/ESC/click to close AC.
If you, in turn, comment the listener in ui/ViewerController the Return/click behaviour is changed and although it closes the panel, it doesn't really close AC.

This could be easily fixed with breaking ecapsulation/separation of concerns by making the Viewer aware of the Controller, but I think this is not the way to go here.

My proposition is to implement an "end"(as in: "close AC") event on the Viewer and listen on it in the ViewerController the events in Viewer would fire that event and the ViewerController would act accordingly.

What do you think @mlewand , @f1ames ?

@f1ames
Copy link
Contributor

f1ames commented Jun 29, 2016

It looks like a redundant code indeed. But I am not sure if there wasn't a reason for that. I would check to be sure if hiding the balloon panel (that's what happens in the Viewer: // Hide the panel...) is same as closing the whole a11ychecker (the comment in ViewerController seems to confirm that it is the same, duplicated behavior).

Apart from that, I think the approach with emitting close/end event inView and listening to it in ViewController is a way to go.

@mlewand
Copy link
Contributor Author

mlewand commented Jun 30, 2016

@Tade0 I've reviewed #215 solution, find my notes in PR ticket.

@mlewand mlewand removed the review? label Jul 1, 2016
@Tade0 Tade0 added the review? label Jul 6, 2016
@f1ames
Copy link
Contributor

f1ames commented Jul 26, 2016

@Tade0 I added a comment to your PR ticket.

@f1ames f1ames removed the review? label Aug 2, 2016
@f1ames f1ames modified the milestones: 1.0.1, 1.1.1 Nov 17, 2016
@mlewand mlewand removed this from the 1.1.1 milestone Mar 27, 2018
@mlewand mlewand added this to the 1.1.2 milestone Mar 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants