mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -07:00
enhance: supports use Shift+Enter on popups
This commit is contained in:
parent
40cf5608d3
commit
43af8c49a1
1 changed files with 1 additions and 2 deletions
|
@ -114,8 +114,7 @@ namespace SourceGit.Views
|
|||
|
||||
private void OnSubjectTextBoxPreviewKeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if ((e.Key == Key.Enter && e.KeyModifiers == KeyModifiers.None)
|
||||
|| (e.Key == Key.Right && SubjectEditor.CaretIndex == Subject.Length))
|
||||
if (e.Key == Key.Enter || (e.Key == Key.Right && SubjectEditor.CaretIndex == Subject.Length))
|
||||
{
|
||||
DescriptionEditor.Focus();
|
||||
DescriptionEditor.CaretIndex = 0;
|
||||
|
|
Loading…
Reference in a new issue