add hotkey in memorize page
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-10-31 18:22:36 +08:00
parent 89eb26a357
commit ff80556e8c

View File

@@ -60,6 +60,9 @@ export default function Edit({ setPage, wordData, setWordData }: Props) {
<NavbarCenterWrapper className="bg-gray-100">
<ACard className="flex flex-col">
<textarea
onKeyDown={(e) => {
if (e.key === "Enter" && e.ctrlKey) handleSave();
}}
ref={textareaRef}
className="flex-1 text-gray-800 font-mono md:text-2xl border-gray-200 border rounded-2xl w-full resize-none outline-0 p-2"
defaultValue={input}