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 453453 <x : String x : Key =" Text.InProgress.Revert.Head" xml : space =" preserve" >Reverting commit</x : String >
454454 <x : String x : Key =" Text.InteractiveRebase" xml : space =" preserve" >Interactive Rebase</x : String >
455455 <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 >
456457 <x : String x : Key =" Text.InteractiveRebase.Target" xml : space =" preserve" >Target Branch:</x : String >
457458 <x : String x : Key =" Text.IssueLinkCM.CopyLink" xml : space =" preserve" >Copy Link</x : String >
458459 <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 457457 <x : String x : Key =" Text.InProgress.Revert.Head" xml : space =" preserve" >正在回滚提交</x : String >
458458 <x : String x : Key =" Text.InteractiveRebase" xml : space =" preserve" >交互式变基</x : String >
459459 <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 >
460461 <x : String x : Key =" Text.InteractiveRebase.Target" xml : space =" preserve" >目标分支 :</x : String >
461462 <x : String x : Key =" Text.IssueLinkCM.CopyLink" xml : space =" preserve" >复制链接地址</x : String >
462463 <x : String x : Key =" Text.IssueLinkCM.OpenInBrowser" xml : space =" preserve" >在浏览器中访问</x : String >
Original file line number Diff line number Diff line change 457457 <x : String x : Key =" Text.InProgress.Revert.Head" xml : space =" preserve" >正在復原提交</x : String >
458458 <x : String x : Key =" Text.InteractiveRebase" xml : space =" preserve" >互動式重定基底</x : String >
459459 <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 >
460461 <x : String x : Key =" Text.InteractiveRebase.Target" xml : space =" preserve" >目標分支:</x : String >
461462 <x : String x : Key =" Text.IssueLinkCM.CopyLink" xml : space =" preserve" >複製連結</x : String >
462463 <x : String x : Key =" Text.IssueLinkCM.OpenInBrowser" xml : space =" preserve" >在瀏覽器中開啟連結</x : String >
Original file line number Diff line number Diff line change 9494 <Border Grid.Column=" 0" Background =" Transparent"
9595 Loaded =" OnSetupRowHeaderDragDrop"
9696 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>
97104 <Path Width =" 14" Height =" 14"
98105 Data =" {StaticResource Icons.Move}"
99106 Fill =" {DynamicResource Brush.FG2}"
Original file line number Diff line number Diff line change @@ -59,24 +59,22 @@ protected override void OnKeyDown(KeyEventArgs e)
5959 vm . ChangeAction ( item , Models . InteractiveRebaseAction . Drop ) ;
6060 e . Handled = true ;
6161 }
62- else
62+ else if ( e . KeyModifiers . HasFlag ( OperatingSystem . IsMacOS ( ) ? KeyModifiers . Meta : KeyModifiers . Control ) )
6363 {
64- if ( e . KeyModifiers . HasFlag ( OperatingSystem . IsMacOS ( ) ? KeyModifiers . Meta : KeyModifiers . Control ) )
64+ if ( e . Key == Key . Up )
6565 {
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 ;
7668 }
69+ else if ( e . Key == Key . Down )
70+ {
71+ vm . MoveItemDown ( item ) ;
72+ e . Handled = true ;
73+ }
74+ }
7775
76+ if ( ! e . Handled )
7877 base . OnKeyDown ( e ) ;
79- }
8078 }
8179 }
8280
You can’t perform that action at this time.
0 commit comments