Skip to content

Commit 1fb225e

Browse files
authored
Keyboard ModelSystemCanvas Navigation (#179)
* Refactored resizing cavnas objects * Refactored moving to preview for dragging. * Added keyboard navigation using arrow keys * Add tab navigation when editing elements * Updated keyboard navigation to test the angles for each possible direction penalizing that direction if it was not the best. * Use secondary neon colour to indicate what elements are selected.
1 parent 077d91b commit 1fb225e

6 files changed

Lines changed: 622 additions & 62 deletions

File tree

src/XTMF2.GUI/Controls/ModelSystemCanvas.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ public sealed partial class ModelSystemCanvas : Control
9999
private NodeViewModel? _editingParamNode;
100100
/// <summary>Screen position and width of the inline editor overlay (set in <see cref="BeginParamEdit"/>).</summary>
101101
private double _editingParamEditorX, _editingParamEditorY, _editingParamEditorW;
102+
/// <summary>The parent canvas element (Node or FunctionInstance) that owns the currently editing parameter.</summary>
103+
private ICanvasElement? _editingParamParentElement;
104+
/// <summary>The hook on the parent element that this parameter is attached to for inlined parameters.</summary>
105+
private object? _editingParamHook;
102106
/// <summary>
103107
/// Transparent, non-interactive overlay that draws syntax-highlighted tokens
104108
/// on top of the scripted-parameter TextBox. Added to VisualChildren after

0 commit comments

Comments
 (0)