Merge pull request #1445 from jlewin/master

Improve keyboard support for make/model selectors
This commit is contained in:
johnlewin 2016-09-29 16:52:18 -07:00 committed by GitHub
commit f3fc6469bd
3 changed files with 16 additions and 2 deletions

View file

@ -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);
}
}
}
}

View file

@ -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