We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f67744e commit 8f052c0Copy full SHA for 8f052c0
app/src/lib/commit/CommitMessageInput.svelte
@@ -161,7 +161,10 @@
161
const value = e.currentTarget.value;
162
if (e.key === 'Backspace' && value.length === 0) {
163
e.preventDefault();
164
- titleTextArea?.focus();
+ if (titleTextArea) {
165
+ titleTextArea?.focus();
166
+ titleTextArea.selectionStart = titleTextArea.textLength;
167
+ }
168
useAutoHeight(e.currentTarget);
169
} else if (e.key === 'a' && (e.metaKey || e.ctrlKey) && value.length === 0) {
170
// select previous textarea on cmd+a if this textarea is empty
0 commit comments