add hotkey in memorize page
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -60,6 +60,9 @@ export default function Edit({ setPage, wordData, setWordData }: Props) {
|
|||||||
<NavbarCenterWrapper className="bg-gray-100">
|
<NavbarCenterWrapper className="bg-gray-100">
|
||||||
<ACard className="flex flex-col">
|
<ACard className="flex flex-col">
|
||||||
<textarea
|
<textarea
|
||||||
|
onKeyDown={(e) => {
|
||||||
|
if (e.key === "Enter" && e.ctrlKey) handleSave();
|
||||||
|
}}
|
||||||
ref={textareaRef}
|
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"
|
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}
|
defaultValue={input}
|
||||||
|
|||||||
Reference in New Issue
Block a user