8 lines
115 B
JavaScript
8 lines
115 B
JavaScript
|
function handleEnter(fnc) {
|
||
|
return e => e.key === "Enter" && fnc()
|
||
|
}
|
||
|
|
||
|
export const keyUtils = {
|
||
|
handleEnter,
|
||
|
}
|