mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-29 13:51:02 +00:00
fix: deleted comments
This commit is contained in:
@@ -112,7 +112,6 @@ export function Pagination({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const onJumpKeyDown = (e: KeyboardEvent<HTMLInputElement>) => {
|
const onJumpKeyDown = (e: KeyboardEvent<HTMLInputElement>) => {
|
||||||
// Allow common control keys
|
|
||||||
const controlKeys = [
|
const controlKeys = [
|
||||||
"Backspace",
|
"Backspace",
|
||||||
"Delete",
|
"Delete",
|
||||||
@@ -138,7 +137,6 @@ export function Pagination({
|
|||||||
} else if (e.key === "Escape") {
|
} else if (e.key === "Escape") {
|
||||||
setIsJumpOpen(false);
|
setIsJumpOpen(false);
|
||||||
} else if (!/^\d$/.test(e.key)) {
|
} else if (!/^\d$/.test(e.key)) {
|
||||||
// Block any non-digit input (e.g., '.', ',')
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user