[FancyZonesEditor]: Grid Editor keyboard control (#12969)

- Ctrl+Tab to switch between zones and layout overlay window
- Tab to focus between grid zones and resizers
- While resizer is focused: arrows to move it; Del to remove it
- While zone is focused: (Shift)+S to split it horizontally/vertically
This commit is contained in:
Andrey Nekrasov
2021-09-01 21:23:10 +03:00
committed by GitHub
parent f0750997de
commit f10faf004e
9 changed files with 242 additions and 3 deletions

View File

@@ -253,10 +253,19 @@ namespace FancyZonesEditor
public void FocusEditor()
{
if (_editorLayout != null && _editorLayout is CanvasEditor canvasEditor)
if (_editorLayout == null)
{
return;
}
if (_editorLayout is CanvasEditor canvasEditor)
{
canvasEditor.FocusZone();
}
else if (_editorLayout is GridEditor gridEditor)
{
gridEditor.FocusZone();
}
}
public void FocusEditorWindow()