paper-behaviors icon indicating copy to clipboard operation
paper-behaviors copied to clipboard

Problem with key bindings in paper-checked-element-behavior

Open akc42 opened this issue 10 years ago • 0 comments

As far as I can determine reading the aria specs a checkbox should respond to a space key by toggling the checked property. However I don't think it should do this when enter is pressed. It is causing me problems because I end up toggling the checkbox with the enter key when trying to use it to simulate the press of the action key on the paper dialog that surrounds it. This action submits a form.

However the paper-checked-element-behavior, through its mixin of PaperInkyFocusBehavior, which in turn mixes in IronButtonState ends up with a key binding of the enter key.

I am reporting it here because I am not sure if the problem is here or in PaperInkyFocusBehavior

akc42 avatar Oct 25 '15 22:10 akc42