angular-editor icon indicating copy to clipboard operation
angular-editor copied to clipboard

Keyboard accessisibility

Open akumar2812 opened this issue 6 years ago • 6 comments

Would it be possible to make the editor keyboard accessible and provide label/name for all the formatting buttons ?

akumar2812 avatar Feb 05 '19 04:02 akumar2812

Hello! Can you explain what you mean?

kolkov avatar Jun 28 '19 08:06 kolkov

@akumar2812 I think you mean keyboard shortcuts?

kolkov avatar Jul 26 '19 06:07 kolkov

I think , this is about usability in UI. Thats called accessibility mean we can make that editor readable for visual impaired people . Yes I need some solution on it if anyone can help

cpratiksha avatar Oct 03 '19 10:10 cpratiksha

@akumar2812 I think you mean keyboard shortcuts?

Accessibility means - Make edit accessible for visual impaired people, they can used application by keyboard . please follow this link https://www.w3.org/standards/webdesign/accessibility

cpratiksha avatar Oct 03 '19 10:10 cpratiksha

Thanks, I try to read this article.

kolkov avatar Oct 09 '19 18:10 kolkov

Excellent suggestion! Keyboard accessibility is important for WCAG compliance.

Current limitations:

  • Toolbar buttons may lack proper ARIA labels
  • No keyboard shortcuts for formatting
  • Tab navigation may not work properly

Proposed improvements:

  1. ARIA labels for all buttons:
<button aeButton 
  aria-label="Bold (Ctrl+B)"
  title="Bold">
  <ae-icon name="bold"></ae-icon>
</button>
  1. Keyboard shortcuts:
@HostListener('keydown', ['$event'])
onKeydown(event: KeyboardEvent) {
  if (event.ctrlKey || event.metaKey) {
    switch (event.key) {
      case 'b': this.executeCommand('bold'); break;
      case 'i': this.executeCommand('italic'); break;
      case 'u': this.executeCommand('underline'); break;
      // ... etc
    }
  }
}
  1. Tab navigation through toolbar
  2. Focus management
  3. Screen reader support

This is a valid accessibility enhancement. Labeling as enhancement, accessibility, and help wanted.

Would welcome a PR! This would make the editor WCAG 2.1 compliant.

kolkov avatar Nov 22 '25 17:11 kolkov