mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
[ACA-2489] - Drag and Drop is not operable with keyboard alone (#1235)
* filter out image-viewer for key navigation * cancel keyboard navigation for cdk-overlay-container children
This commit is contained in:
parent
bd81c496d8
commit
cb268f2ebe
@ -777,9 +777,9 @@ describe('PreviewComponent', () => {
|
|||||||
expect(router.navigate).not.toHaveBeenCalled();
|
expect(router.navigate).not.toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should not navigate on keyboard event if target is child of dialog container', () => {
|
it('should not navigate on keyboard event if target is child of cdk overlay', () => {
|
||||||
const parent = document.createElement('div');
|
const parent = document.createElement('div');
|
||||||
parent.className = 'mat-dialog-container';
|
parent.className = 'cdk-overlay-container';
|
||||||
|
|
||||||
const child = document.createElement('button');
|
const child = document.createElement('button');
|
||||||
child.addEventListener('keyup', function(e) {
|
child.addEventListener('keyup', function(e) {
|
||||||
|
@ -115,7 +115,8 @@ export class PreviewComponent extends PageComponent
|
|||||||
|
|
||||||
private containersSkipNavigation = [
|
private containersSkipNavigation = [
|
||||||
'adf-viewer__sidebar',
|
'adf-viewer__sidebar',
|
||||||
'mat-dialog-container'
|
'cdk-overlay-container',
|
||||||
|
'adf-image-viewer'
|
||||||
];
|
];
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
|
@ -114,7 +114,8 @@ export class AppViewerComponent implements OnInit, OnDestroy {
|
|||||||
private previewLocation: string;
|
private previewLocation: string;
|
||||||
private containersSkipNavigation = [
|
private containersSkipNavigation = [
|
||||||
'adf-viewer__sidebar',
|
'adf-viewer__sidebar',
|
||||||
'mat-dialog-container'
|
'cdk-overlay-container',
|
||||||
|
'adf-image-viewer'
|
||||||
];
|
];
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user