Project

General

Profile

Actions

Bug #104171

open

Make context menu fire 'click' on keyboard spacebar press

Added by Ayke Halder 8 days ago. Updated 2 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:
Is Regression:
Sprint Focus:

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 2 days ago

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

Updated by Riccardo De Contardi 2 days ago

  • Tags changed from UX accessibility to UX, accessibility
Actions

Also available in: Atom PDF