diff options
author | Mathieu Suen <mathieu.suen@sonarsource.com> | 2022-11-11 09:26:59 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-11-14 20:03:39 +0000 |
commit | 01c4dc5db1b4d64babbeb33e6a2d2be043fabeeb (patch) | |
tree | 01fe7598028829afc6f1b66b1b2ebfb1635e0ab6 /server/sonar-web/src/main/js/apps/security-hotspots | |
parent | 1a9f524c359d8e1bc099f150d1ca53c237c8c848 (diff) | |
download | sonarqube-01c4dc5db1b4d64babbeb33e6a2d2be043fabeeb.tar.gz sonarqube-01c4dc5db1b4d64babbeb33e6a2d2be043fabeeb.zip |
SONAR-17591 Fix keyboard arrow behavior in multi-line input
Diffstat (limited to 'server/sonar-web/src/main/js/apps/security-hotspots')
-rw-r--r-- | server/sonar-web/src/main/js/apps/security-hotspots/SecurityHotspotsApp.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/SecurityHotspotsApp.tsx b/server/sonar-web/src/main/js/apps/security-hotspots/SecurityHotspotsApp.tsx index beaccb76e96..e309c9a4af8 100644 --- a/server/sonar-web/src/main/js/apps/security-hotspots/SecurityHotspotsApp.tsx +++ b/server/sonar-web/src/main/js/apps/security-hotspots/SecurityHotspotsApp.tsx @@ -27,6 +27,7 @@ import withCurrentUserContext from '../../app/components/current-user/withCurren import { Location, Router, withRouter } from '../../components/hoc/withRouter'; import { getLeakValue } from '../../components/measure/utils'; import { getBranchLikeQuery, isPullRequest, isSameBranchLike } from '../../helpers/branch-like'; +import { isInput } from '../../helpers/keyboardEventHelpers'; import { KeyboardKeys } from '../../helpers/keycodes'; import { getStandards } from '../../helpers/security-standard'; import { BranchLike } from '../../types/branch-like'; @@ -147,6 +148,9 @@ export class SecurityHotspotsApp extends React.PureComponent<Props, State> { } handleKeyDown = (event: KeyboardEvent) => { + if (isInput(event)) { + return; + } if (event.key === KeyboardKeys.Alt) { event.preventDefault(); return; |