paper-behaviors
paper-behaviors copied to clipboard
Problem with key bindings in paper-checked-element-behavior
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