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();
|
||||
});
|
||||
|
||||
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');
|
||||
parent.className = 'mat-dialog-container';
|
||||
parent.className = 'cdk-overlay-container';
|
||||
|
||||
const child = document.createElement('button');
|
||||
child.addEventListener('keyup', function(e) {
|
||||
|
@ -115,7 +115,8 @@ export class PreviewComponent extends PageComponent
|
||||
|
||||
private containersSkipNavigation = [
|
||||
'adf-viewer__sidebar',
|
||||
'mat-dialog-container'
|
||||
'cdk-overlay-container',
|
||||
'adf-image-viewer'
|
||||
];
|
||||
|
||||
constructor(
|
||||
|
@ -114,7 +114,8 @@ export class AppViewerComponent implements OnInit, OnDestroy {
|
||||
private previewLocation: string;
|
||||
private containersSkipNavigation = [
|
||||
'adf-viewer__sidebar',
|
||||
'mat-dialog-container'
|
||||
'cdk-overlay-container',
|
||||
'adf-image-viewer'
|
||||
];
|
||||
|
||||
constructor(
|
||||
|
Loading…
x
Reference in New Issue
Block a user