|
@@ -116,6 +116,11 @@ public class DateField : TextField
|
|
|
/// <inheritdoc/>
|
|
|
protected override bool OnMouseEvent (MouseEventArgs ev)
|
|
|
{
|
|
|
+ if (base.OnMouseEvent (ev) || ev.Handled)
|
|
|
+ {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
if (SelectedLength == 0 && ev.Flags.HasFlag (MouseFlags.Button1Pressed))
|
|
|
{
|
|
|
AdjCursorPosition (ev.Position.X);
|
|
@@ -162,7 +167,7 @@ public class DateField : TextField
|
|
|
newPoint = 1;
|
|
|
}
|
|
|
|
|
|
- //if (newPoint != point)
|
|
|
+ if (newPoint != point)
|
|
|
{
|
|
|
CursorPosition = newPoint;
|
|
|
}
|