Skip to content

Commit 43af8c4

Browse files
committed
enhance: supports use Shift+Enter on popups
1 parent 40cf560 commit 43af8c4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Views/CommitMessageTextBox.axaml.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs chang
114114

115115
private void OnSubjectTextBoxPreviewKeyDown(object sender, KeyEventArgs e)
116116
{
117-
if ((e.Key == Key.Enter && e.KeyModifiers == KeyModifiers.None)
118-
|| (e.Key == Key.Right && SubjectEditor.CaretIndex == Subject.Length))
117+
if (e.Key == Key.Enter || (e.Key == Key.Right && SubjectEditor.CaretIndex == Subject.Length))
119118
{
120119
DescriptionEditor.Focus();
121120
DescriptionEditor.CaretIndex = 0;

0 commit comments

Comments
 (0)