Skip to content

Commit

Permalink
hide contextmenu when pressing key
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj committed Jun 28, 2024
1 parent 0acde7a commit d33f645
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions page/scroll.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import {
hoverables
} from './selector'
import {
hideContextmenu
} from './ux'

const MAX_ROW = 6
const MAX_COLUMN = 6
Expand Down Expand Up @@ -190,6 +193,7 @@ function getNeighborCandidate (index: number, direction: SCROLL_MOVE_HIGHLIGHT):
}

export function scrollKeyAction (action: SCROLL_KEY_ACTION) {
hideContextmenu()
if (action >= 1 && action <= 6) {
const highlightedRow = getHighlightedRow()
const n = rowItemCount[highlightedRow]
Expand Down

0 comments on commit d33f645

Please sign in to comment.