mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
[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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user