From 87964a5ee62c6a213f70f30a319b821605b42513 Mon Sep 17 00:00:00 2001 From: Henriette Dinger Date: Fri, 20 Mar 2020 15:33:00 +0100 Subject: [PATCH] Delay the search opening to avoid that the BIM model viewer movement is triggered. --- frontend/src/app/modules/a11y/keyboard-shortcut-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/modules/a11y/keyboard-shortcut-service.ts b/frontend/src/app/modules/a11y/keyboard-shortcut-service.ts index c86cc16608..71a2ef70d8 100644 --- a/frontend/src/app/modules/a11y/keyboard-shortcut-service.ts +++ b/frontend/src/app/modules/a11y/keyboard-shortcut-service.ts @@ -102,7 +102,7 @@ export class KeyboardShortcutService { if (elem.is('input') || elem.attr('id') === 'global-search-input') { // timeout with delay so that the key is not // triggered on the input - setTimeout( () => this.FocusHelper.focus(elem), 0); + setTimeout( () => this.FocusHelper.focus(elem), 200); } else if (elem.is('[href]')) { this.clickLink(elem[0]); } else {