Remove focuser machiner
This commit is contained in:
@@ -955,13 +955,6 @@ const Index = () => {
|
|||||||
}).replace(/(\d+)\/(\d+)\/(\d+),\s(\d+):(\d+):(\d+)/, '$3-$1-$2 $4:$5:$6');
|
}).replace(/(\d+)\/(\d+)\/(\d+),\s(\d+):(\d+):(\d+)/, '$3-$1-$2 $4:$5:$6');
|
||||||
};
|
};
|
||||||
|
|
||||||
// Auto-focus current note textarea on mount
|
|
||||||
useEffect(() => {
|
|
||||||
if (currentNoteRef.current) {
|
|
||||||
currentNoteRef.current.focus();
|
|
||||||
}
|
|
||||||
}, []); // Empty dependency array means this runs once on mount
|
|
||||||
|
|
||||||
// Load font size setting
|
// Load font size setting
|
||||||
const loadFontSizeSetting = async () => {
|
const loadFontSizeSetting = async () => {
|
||||||
try {
|
try {
|
||||||
@@ -1102,6 +1095,7 @@ const Index = () => {
|
|||||||
setCurrentNote(e.target.value);
|
setCurrentNote(e.target.value);
|
||||||
}}
|
}}
|
||||||
onBlur={handleCurrentNoteBlur}
|
onBlur={handleCurrentNoteBlur}
|
||||||
|
autoFocus
|
||||||
className={`h-[calc(100%-2rem)] border-0 resize-none focus:ring-0 text-slate-200 bg-transparent ${getTextClass('2xl')}`}
|
className={`h-[calc(100%-2rem)] border-0 resize-none focus:ring-0 text-slate-200 bg-transparent ${getTextClass('2xl')}`}
|
||||||
placeholder="Start writing your thoughts..."
|
placeholder="Start writing your thoughts..."
|
||||||
/>
|
/>
|
||||||
|
Reference in New Issue
Block a user