Delay the search opening to avoid that the BIM model viewer movement is triggered.

pull/8186/head
Henriette Dinger 5 years ago
parent e4c2b6e0aa
commit 87964a5ee6
  1. 2
      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') { if (elem.is('input') || elem.attr('id') === 'global-search-input') {
// timeout with delay so that the key is not // timeout with delay so that the key is not
// triggered on the input // triggered on the input
setTimeout( () => this.FocusHelper.focus(elem), 0); setTimeout( () => this.FocusHelper.focus(elem), 200);
} else if (elem.is('[href]')) { } else if (elem.is('[href]')) {
this.clickLink(elem[0]); this.clickLink(elem[0]);
} else { } else {

Loading…
Cancel
Save