mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08: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)
|
private void OnSubjectTextBoxPreviewKeyDown(object sender, KeyEventArgs e)
|
||||||
{
|
{
|
||||||
if ((e.Key == Key.Enter && e.KeyModifiers == KeyModifiers.None)
|
if (e.Key == Key.Enter || (e.Key == Key.Right && SubjectEditor.CaretIndex == Subject.Length))
|
||||||
|| (e.Key == Key.Right && SubjectEditor.CaretIndex == Subject.Length))
|
|
||||||
{
|
{
|
||||||
DescriptionEditor.Focus();
|
DescriptionEditor.Focus();
|
||||||
DescriptionEditor.CaretIndex = 0;
|
DescriptionEditor.CaretIndex = 0;
|
||||||
|
|
Loading…
Reference in a new issue