Project

General

Profile

Actions

Bug #104171

open

Make context menu fire 'click' on keyboard spacebar press

Added by Ayke Halder 5 months ago. Updated 5 months 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;
}

Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Epic #91518: Keyboard usage in the TYPO3 backendAcceptedMichael Telgkamp2020-06-05

Actions
Actions #1

Updated by Riccardo De Contardi 5 months ago

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

Updated by Riccardo De Contardi 5 months ago

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

Updated by Riccardo De Contardi 5 months ago

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

Updated by Ayke Halder 4 months ago

  • Related to Epic #91518: Keyboard usage in the TYPO3 backend added
Actions

Also available in: Atom PDF