mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-19 15:41:31 +03:00
Add commit shortcut
This commit is contained in:
parent
feab3be9b1
commit
c07192f81e
@ -134,6 +134,17 @@
|
||||
on:input={useAutoHeight}
|
||||
on:focus={useAutoHeight}
|
||||
on:change={() => currentCommitMessage.set(commitMessage)}
|
||||
on:keydown={(e) => {
|
||||
if ((e.ctrlKey || e.metaKey) && e.key === 'Enter') {
|
||||
if ($expanded) {
|
||||
if (commitMessage) {
|
||||
commit();
|
||||
}
|
||||
} else {
|
||||
$expanded = true;
|
||||
}
|
||||
}
|
||||
}}
|
||||
spellcheck={false}
|
||||
class="text-input text-base-body-13 commit-box__textarea"
|
||||
rows="1"
|
||||
|
Loading…
Reference in New Issue
Block a user