Convert utils

This commit is contained in:
Adria Navarro 2025-01-13 13:36:25 +01:00
parent 1bf99d31de
commit 2fd120c656
3 changed files with 7 additions and 7 deletions

View File

@ -1,7 +0,0 @@
function handleEnter(fnc) {
return e => e.key === "Enter" && fnc()
}
export const keyUtils = {
handleEnter,
}

View File

@ -0,0 +1,7 @@
function handleEnter(fnc: () => void) {
return (e: KeyboardEvent) => e.key === "Enter" && fnc()
}
export const keyUtils = {
handleEnter,
}