개정판 e1b36bc0
Feature: Grouping 기능 추가(Ctrl+G : Group, Ctrl+Shift+G : Ungroup)
Change-Id: I99a3309acd55799ff7101522feaa035225b80e48
KCOM/Events/Event_KeyEvent.cs | ||
---|---|---|
215 | 215 |
} |
216 | 216 |
} |
217 | 217 |
break; |
218 |
#endregion |
|
218 |
#endregion |
|
219 |
case Key.G: |
|
220 |
{ |
|
221 |
#region Grouping 해제 |
|
222 |
if (ViewerDataModel.Instance.IsPressCtrl && ViewerDataModel.Instance.IsPressShift) |
|
223 |
{ |
|
224 |
SelectionSet.Instance.SelectedItems.ForEach(x => x.GroupID = string.Empty); |
|
225 |
} |
|
226 |
#endregion |
|
227 |
#region Grouping |
|
228 |
else if (ViewerDataModel.Instance.IsPressCtrl) |
|
229 |
{ |
|
230 |
string GroupID = Guid.NewGuid().ToString(); |
|
231 |
SelectionSet.Instance.SelectedItems.ForEach(x => x.GroupID = GroupID); |
|
232 |
} |
|
233 |
#endregion |
|
234 |
} |
|
235 |
break; |
|
219 | 236 |
|
220 | 237 |
#region Undo(Ctrl + Z) |
221 |
case Key.Z: |
|
238 |
case Key.Z:
|
|
222 | 239 |
{ |
223 | 240 |
if (ViewerDataModel.Instance.IsPressCtrl) UndoCommand.Instance.Execute(); |
224 | 241 |
} |
내보내기 Unified diff