mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Improve studio/tag/performer filtering (#3619)
* Support excludes field * Refactor studio filter * Refactor tags filter * Support excludes in tags --------- Co-authored-by: Kermie <kermie@isinthe.house>
This commit is contained in:
9
ui/v2.5/src/utils/keyboard.ts
Normal file
9
ui/v2.5/src/utils/keyboard.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export function keyboardClickHandler(onClick: () => void) {
|
||||
function onKeyDown(e: React.KeyboardEvent<HTMLAnchorElement>) {
|
||||
if (e.key === "Enter" || e.key === " ") {
|
||||
onClick();
|
||||
}
|
||||
}
|
||||
|
||||
return onKeyDown;
|
||||
}
|
||||
Reference in New Issue
Block a user