mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
* Support excludes field * Refactor studio filter * Refactor tags filter * Support excludes in tags --------- Co-authored-by: Kermie <kermie@isinthe.house>
10 lines
222 B
TypeScript
10 lines
222 B
TypeScript
export function keyboardClickHandler(onClick: () => void) {
|
|
function onKeyDown(e: React.KeyboardEvent<HTMLAnchorElement>) {
|
|
if (e.key === "Enter" || e.key === " ") {
|
|
onClick();
|
|
}
|
|
}
|
|
|
|
return onKeyDown;
|
|
}
|