Func style allowing arrow (#461)
* eslint func-style rule added to server * eslint func-style rule added to front-end
This commit is contained in:
@ -15,7 +15,7 @@ export function useDirectHotkeys(
|
||||
) {
|
||||
const [pendingHotkey, setPendingHotkey] = useRecoilState(pendingHotkeyState);
|
||||
|
||||
const callbackIfDirectKey = function (
|
||||
function callbackIfDirectKey(
|
||||
keyboardEvent: KeyboardEvent,
|
||||
hotkeysEvent: Hotkey,
|
||||
) {
|
||||
@ -24,7 +24,7 @@ export function useDirectHotkeys(
|
||||
return;
|
||||
}
|
||||
setPendingHotkey(null);
|
||||
};
|
||||
}
|
||||
|
||||
useHotkeys(keys, callbackIfDirectKey, dependencies);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user