File tree Expand file tree Collapse file tree 5 files changed +21
-13
lines changed Expand file tree Collapse file tree 5 files changed +21
-13
lines changed Original file line number Diff line number Diff line change 453
453
<x : String x : Key =" Text.InProgress.Revert.Head" xml : space =" preserve" >Reverting commit</x : String >
454
454
<x : String x : Key =" Text.InteractiveRebase" xml : space =" preserve" >Interactive Rebase</x : String >
455
455
<x : String x : Key =" Text.InteractiveRebase.On" xml : space =" preserve" >On:</x : String >
456
+ <x : String x : Key =" Text.InteractiveRebase.ReorderTip" xml : space =" preserve" >Drag-drop to reorder commits</x : String >
456
457
<x : String x : Key =" Text.InteractiveRebase.Target" xml : space =" preserve" >Target Branch:</x : String >
457
458
<x : String x : Key =" Text.IssueLinkCM.CopyLink" xml : space =" preserve" >Copy Link</x : String >
458
459
<x : String x : Key =" Text.IssueLinkCM.OpenInBrowser" xml : space =" preserve" >Open in Browser</x : String >
Original file line number Diff line number Diff line change 457
457
<x : String x : Key =" Text.InProgress.Revert.Head" xml : space =" preserve" >正在回滚提交</x : String >
458
458
<x : String x : Key =" Text.InteractiveRebase" xml : space =" preserve" >交互式变基</x : String >
459
459
<x : String x : Key =" Text.InteractiveRebase.On" xml : space =" preserve" >起始提交 :</x : String >
460
+ <x : String x : Key =" Text.InteractiveRebase.ReorderTip" xml : space =" preserve" >拖拽以便对提交重新排序</x : String >
460
461
<x : String x : Key =" Text.InteractiveRebase.Target" xml : space =" preserve" >目标分支 :</x : String >
461
462
<x : String x : Key =" Text.IssueLinkCM.CopyLink" xml : space =" preserve" >复制链接地址</x : String >
462
463
<x : String x : Key =" Text.IssueLinkCM.OpenInBrowser" xml : space =" preserve" >在浏览器中访问</x : String >
Original file line number Diff line number Diff line change 457
457
<x : String x : Key =" Text.InProgress.Revert.Head" xml : space =" preserve" >正在復原提交</x : String >
458
458
<x : String x : Key =" Text.InteractiveRebase" xml : space =" preserve" >互動式重定基底</x : String >
459
459
<x : String x : Key =" Text.InteractiveRebase.On" xml : space =" preserve" >起始提交:</x : String >
460
+ <x : String x : Key =" Text.InteractiveRebase.ReorderTip" xml : space =" preserve" >拖曳以重新排序提交</x : String >
460
461
<x : String x : Key =" Text.InteractiveRebase.Target" xml : space =" preserve" >目標分支:</x : String >
461
462
<x : String x : Key =" Text.IssueLinkCM.CopyLink" xml : space =" preserve" >複製連結</x : String >
462
463
<x : String x : Key =" Text.IssueLinkCM.OpenInBrowser" xml : space =" preserve" >在瀏覽器中開啟連結</x : String >
Original file line number Diff line number Diff line change 94
94
<Border Grid.Column=" 0" Background =" Transparent"
95
95
Loaded =" OnSetupRowHeaderDragDrop"
96
96
PointerPressed =" OnRowHeaderPointerPressed" >
97
+ <ToolTip .Tip>
98
+ <TextBlock >
99
+ <Run Text =" {DynamicResource Text.InteractiveRebase.ReorderTip}" />
100
+ <Run Text =" " />
101
+ <Run Text =" {OnPlatform 'Ctrl+Up/Ctrl+Down', macOS='⌘+Up/⌘+Down'}" Foreground =" {DynamicResource Brush.FG2}" />
102
+ </TextBlock >
103
+ </ToolTip .Tip>
97
104
<Path Width =" 14" Height =" 14"
98
105
Data =" {StaticResource Icons.Move}"
99
106
Fill =" {DynamicResource Brush.FG2}"
Original file line number Diff line number Diff line change @@ -59,24 +59,22 @@ protected override void OnKeyDown(KeyEventArgs e)
59
59
vm . ChangeAction ( item , Models . InteractiveRebaseAction . Drop ) ;
60
60
e . Handled = true ;
61
61
}
62
- else
62
+ else if ( e . KeyModifiers . HasFlag ( OperatingSystem . IsMacOS ( ) ? KeyModifiers . Meta : KeyModifiers . Control ) )
63
63
{
64
- if ( e . KeyModifiers . HasFlag ( OperatingSystem . IsMacOS ( ) ? KeyModifiers . Meta : KeyModifiers . Control ) )
64
+ if ( e . Key == Key . Up )
65
65
{
66
- if ( e . Key == Key . Up )
67
- {
68
- vm . MoveItemUp ( item ) ;
69
- e . Handled = true ;
70
- }
71
- else if ( e . Key == Key . Down )
72
- {
73
- vm . MoveItemDown ( item ) ;
74
- e . Handled = true ;
75
- }
66
+ vm . MoveItemUp ( item ) ;
67
+ e . Handled = true ;
76
68
}
69
+ else if ( e . Key == Key . Down )
70
+ {
71
+ vm . MoveItemDown ( item ) ;
72
+ e . Handled = true ;
73
+ }
74
+ }
77
75
76
+ if ( ! e . Handled )
78
77
base . OnKeyDown ( e ) ;
79
- }
80
78
}
81
79
}
82
80
You can’t perform that action at this time.
0 commit comments