forked from Github/frigate
Misc Improvements (#14076)
* Return ID of export in http response * Ignore keyboard listener when typing in text field * Add other keyboard listeners
This commit is contained in:
@@ -14,7 +14,8 @@ export default function useKeyboardListener(
|
||||
) {
|
||||
const keyDownListener = useCallback(
|
||||
(e: KeyboardEvent) => {
|
||||
if (!e) {
|
||||
// @ts-expect-error we know this field exists
|
||||
if (!e || e.target.tagName == "INPUT") {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user