mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
lint
This commit is contained in:
parent
b9c072e7ac
commit
fe8f1b44db
2 changed files with 5 additions and 5 deletions
|
@ -19,14 +19,14 @@ export default function Editor() {
|
|||
|
||||
useEffect(() => {
|
||||
const handleKeyDown = (e: KeyboardEvent) => {
|
||||
if (e.ctrlKey && e.key === 's') {
|
||||
if (e.ctrlKey && e.key === "s") {
|
||||
e.preventDefault();
|
||||
setCode(currentCode);
|
||||
}
|
||||
};
|
||||
|
||||
window.addEventListener('keydown', handleKeyDown);
|
||||
return () => window.removeEventListener('keydown', handleKeyDown);
|
||||
window.addEventListener("keydown", handleKeyDown);
|
||||
return () => window.removeEventListener("keydown", handleKeyDown);
|
||||
}, [currentCode]);
|
||||
|
||||
const handleEditorChange = (value: string | undefined) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue