[28196] Allow expanding query menu categories with enter

https://community.openproject.com/wp/28196

[ci skip]
pull/6519/head
Oliver Günther 6 years ago
parent 3d8e95cc15
commit 2cb75f8069
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 6
      frontend/src/app/components/wp-query-select/wp-query-select-dropdown.component.ts

@ -490,7 +490,11 @@ export class WorkPackageQuerySelectDropdownComponent implements OnInit, OnDestro
return true;
})
.on('click', '.wp-query-menu--category-toggle', (evt:JQueryEventObject) => {
.on('click keydown', '.wp-query-menu--category-toggle', (evt:JQueryEventObject) => {
if (evt.type === 'keydown' && evt.which !== keyCodes.ENTER) {
return true;
}
const target = jQuery(evt.target);
const clickedCategory = target.data('category');

Loading…
Cancel
Save