Skip to content

Commit

Permalink
make sure to allow keypress defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
blackforestboi committed Feb 26, 2024
1 parent b7e9693 commit 9fc32fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dashboard-refactor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,6 @@ export class DashboardContainer extends StatefulUIElement<
handleChangeFocusItem = (event: KeyboardEvent) => {
const getPopoutBoxes = document.getElementById('popout-boxes')
if (!getPopoutBoxes) {
event.stopPropagation()
event.preventDefault()
if (
event.key === 'Escape' &&
this.props.inPageMode &&
Expand All @@ -189,6 +187,8 @@ export class DashboardContainer extends StatefulUIElement<
}

if (event.key === 'ArrowUp' || event.key === 'ArrowDown') {
event.stopPropagation()
event.preventDefault()
if (!this.state.focusLockUntilMouseStart) {
document.addEventListener('mousemove', this.releaseLock, {
once: true,
Expand Down

0 comments on commit 9fc32fb

Please sign in to comment.