Project

General

Profile

Actions

Bug #104171

open

Make context menu fire 'click' on keyboard spacebar press

Added by Ayke Halder about 1 month ago. Updated 21 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Backend JavaScript
Target version:
-
Start date:
2024-06-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
UX, accessibility
Complexity:
easy
Is Regression:
Sprint Focus:
On Location Sprint

Description

The context-menu does not fire 'click' on spacebar press.

Technical background

  • event.key for spacebar is ' ' (blank)
  • event.code for spacebar is 'Space'

https://www.toptal.com/developers/keycode/space

/* current implementation */
switch (event.key) {
  case 'Enter':
  case 'Space':
    target.click();
    break;
}

/* must become */
switch (event.key) {
  case 'Enter':
  case ' ':
    target.click();
    break;
}
Actions #1

Updated by Riccardo De Contardi 25 days ago

  • Tags changed from UX,Accessibility to UX accessibility
Actions #2

Updated by Riccardo De Contardi 25 days ago

  • Tags changed from UX accessibility to UX, accessibility
Actions #3

Updated by Riccardo De Contardi 21 days ago

  • Complexity set to easy
  • Sprint Focus set to On Location Sprint
Actions

Also available in: Atom PDF