diff options
author | Guillaume Peoc'h <guillaume.peoch@sonarsource.com> | 2022-06-08 17:48:30 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-06-14 20:02:51 +0000 |
commit | a8387c9d9150797e4a6c045547a2b9b609a162f6 (patch) | |
tree | 1273c2ec11e65f9158abccac7ed1cca8b65c9794 /server/sonar-web/src/main/js/apps/security-hotspots | |
parent | cd667b114ce059d04d8152ce9b4fe31e090a31dd (diff) | |
download | sonarqube-a8387c9d9150797e4a6c045547a2b9b609a162f6.tar.gz sonarqube-a8387c9d9150797e4a6c045547a2b9b609a162f6.zip |
[NO JIRA] Changing window to document for EventListerner
Diffstat (limited to 'server/sonar-web/src/main/js/apps/security-hotspots')
-rw-r--r-- | server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotViewerTabs.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotViewerTabs.tsx b/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotViewerTabs.tsx index 996ea790cd4..100a42eb9de 100644 --- a/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotViewerTabs.tsx +++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotViewerTabs.tsx @@ -100,11 +100,11 @@ export default class HotspotViewerTabs extends React.PureComponent<Props, State> }; registerKeyboardEvents() { - window.addEventListener('keydown', this.handleKeyboardNavigation); + document.addEventListener('keydown', this.handleKeyboardNavigation); } unregisterKeyboardEvents() { - window.removeEventListener('keydown', this.handleKeyboardNavigation); + document.removeEventListener('keydown', this.handleKeyboardNavigation); } handleSelectTabs = (tabKey: TabKeys) => { |