Skip to content

Commit a577fd4

Browse files
authored
fix(quick_search): enable Numpad Enter to trigger quick search (#7624)
2 parents 977284f + 26ea43d commit a577fd4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

apps/client/src/services/shortcuts.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ describe("shortcuts", () => {
159159
expect(matchesShortcut(event, "Shift+F1")).toBeTruthy();
160160

161161
// Special keys
162-
for (const keyCode of [ "Delete", "Enter" ]) {
162+
for (const keyCode of [ "Delete", "Enter", "NumpadEnter" ]) {
163163
event = createKeyboardEvent({ key: keyCode, code: keyCode });
164164
expect(matchesShortcut(event, keyCode), `Key ${keyCode}`).toBeTruthy();
165165
}

apps/client/src/services/shortcuts.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ for (let i = 1; i <= 19; i++) {
4646
const KEYCODES_WITH_NO_MODIFIER = new Set([
4747
"Delete",
4848
"Enter",
49+
"NumpadEnter",
4950
...functionKeyCodes
5051
]);
5152

0 commit comments

Comments
 (0)