개정판 b2d0f316
Feature: 선택한 객체를 앞으로(+)/뒤로(-) 보내기 기능 추가
Change-Id: I9130a93cfdb2d079f28258f3d669a6f532695f89
KCOM/Events/Event_KeyEvent.cs | ||
---|---|---|
23 | 23 |
public double CumulativeWheel = 0; |
24 | 24 |
MarkupToPDF.Controls.Parsing.MarkupParser.MarkupReturn markupReturn = new MarkupToPDF.Controls.Parsing.MarkupParser.MarkupReturn(); |
25 | 25 |
|
26 |
/// <summary> |
|
27 |
/// 입력한 키 처리 |
|
28 |
/// </summary> |
|
29 |
/// <param name="sender"></param> |
|
30 |
/// <param name="e"></param> |
|
26 | 31 |
public async void KeyEventDownAction(object sender, KeyEventArgs e) |
27 | 32 |
{ |
28 | 33 |
//if (e.IsRepeat && !ViewerDataModel.Instance.IsPressCtrl && !ViewerDataModel.Instance.IsPressShift) |
... | ... | |
64 | 69 |
} |
65 | 70 |
break; |
66 | 71 |
|
67 |
#region 전체 선택(Ctrl + A)
|
|
72 |
#region 전체 선택(Ctrl + A) |
|
68 | 73 |
case Key.A: |
69 | 74 |
{ |
70 | 75 |
if (ViewerDataModel.Instance.IsPressCtrl && (App.ViewInfo.CreateFinalPDFPermission || App.ViewInfo.NewCommentPermission)) |
... | ... | |
442 | 447 |
case Key.PageDown: |
443 | 448 |
this.dzMainMenu.pageNavigator.GotoPage(Convert.ToInt32(Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.pageNavigator.CurrentPage.PageNumber) + 1); |
444 | 449 |
break; |
445 |
} |
|
450 |
#region ZIndex 설정 |
|
451 |
case Key.Add: |
|
452 |
foreach (var item in SelectionSet.Instance.SelectedItems) |
|
453 |
{ |
|
454 |
if (item.ZIndex < 100) |
|
455 |
{ |
|
456 |
item.ZIndex++; |
|
457 |
Canvas.SetZIndex(item, item.ZIndex); |
|
458 |
} |
|
459 |
} |
|
460 |
ViewerDataModel.Instance.IsMarkupUpdate = true; |
|
461 |
break; |
|
462 |
case Key.Subtract: |
|
463 |
foreach(var item in SelectionSet.Instance.SelectedItems) |
|
464 |
{ |
|
465 |
if (item.ZIndex > 0) |
|
466 |
{ |
|
467 |
item.ZIndex--; |
|
468 |
Canvas.SetZIndex(item, item.ZIndex); |
|
469 |
} |
|
470 |
} |
|
471 |
ViewerDataModel.Instance.IsMarkupUpdate = true; |
|
472 |
break; |
|
473 |
#endregion |
|
474 |
} |
|
446 | 475 |
}); |
447 | 476 |
} |
448 | 477 |
|
내보내기 Unified diff