Merge pull request #1445 from jlewin/master
Improve keyboard support for make/model selectors
This commit is contained in:
commit
f3fc6469bd
3 changed files with 16 additions and 2 deletions
|
|
@ -34,6 +34,8 @@ using System.Collections.Generic;
|
|||
using MatterHackers.MatterControl.SettingsManagement;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using MatterHackers.Agg;
|
||||
using System;
|
||||
|
||||
namespace MatterHackers.MatterControl
|
||||
{
|
||||
|
|
@ -72,6 +74,16 @@ namespace MatterHackers.MatterControl
|
|||
Invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnDraw(Graphics2D graphics2D)
|
||||
{
|
||||
base.OnDraw(graphics2D);
|
||||
|
||||
if (Focused)
|
||||
{
|
||||
graphics2D.Rectangle(LocalBounds, RGBA_Bytes.Orange);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -46,7 +46,8 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections
|
|||
HAnchor = HAnchor.ParentLeftRight,
|
||||
Margin = elementMargin,
|
||||
Name = "Select Make",
|
||||
ListSource = OemSettings.Instance.AllOems
|
||||
ListSource = OemSettings.Instance.AllOems,
|
||||
TabStop = true
|
||||
};
|
||||
|
||||
printerManufacturerSelector.SelectionChanged += ManufacturerDropList_SelectionChanged;
|
||||
|
|
@ -66,6 +67,7 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections
|
|||
Name = "Select Model",
|
||||
HAnchor = HAnchor.ParentLeftRight,
|
||||
Margin = elementMargin,
|
||||
TabStop = true
|
||||
};
|
||||
printerModelSelector.SelectionChanged += ModelDropList_SelectionChanged;
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit b88e5198bd8f923ac47a59b92fba7a3b77afbf0a
|
||||
Subproject commit a5dd5f2c490013763dc7fb53358c22a255f2e108
|
||||
Loading…
Add table
Add a link
Reference in a new issue