Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Toolbar Button: Handle
click
instead of mousedown
Revert [c4b9d5b][] Requiring mouse events to trigger `<button>` element event listeners poses accessibility issues for keyboard users. The context in the original commit ([c4b9d5b][]) is fairly light, and there doesn't appear to be a link to a GitHub pull request with more information. The provided context is: > Prevents flickering of the placeholder text when clicking block > formatting buttons on an empty document. Since the commit is from 2014, there is hope that the underlying flicker might have been resolved through the natural course of browser improvements and device enhancements. The benefit of responding to keyboard events when the `<button>` element has focus outweighs the potential downsides. [c4b9d5b]: c4b9d5b
- Loading branch information