Author: rolf
Date: 2007-05-28 06:20:23 -0400 (Mon, 28 May 2007)
New Revision: 78042
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MonthCalendar.cs
Log:
* MonthCalendar.cs: Only mark the keypresses we actually handle as
handled.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-05-28 10:15:30 UTC (rev 78041)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-05-28 10:20:23 UTC (rev 78042)
@@ -1,5 +1,10 @@
2007-05-28 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+ * MonthCalendar.cs: Only mark the keypresses we actually handle as
+ handled.
+
+2007-05-28 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+
* MonthCalendar.cs: Set the size after initializing all the relevant
variables. Fixes #81742.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MonthCalendar.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MonthCalendar.cs
2007-05-28 10:15:30 UTC (rev 78041)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MonthCalendar.cs
2007-05-28 10:20:23 UTC (rev 78042)
@@ -2044,6 +2044,7 @@
if (!is_shift_pressed && e.Shift) {
first_select_start_date =
SelectionStart;
is_shift_pressed = e.Shift;
+ e.Handled = true;
}
switch (e.KeyCode) {
case Keys.Home:
@@ -2059,6 +2060,7 @@
this.SetSelectionRange
(date, date);
}
this.OnDateChanged (new
DateRangeEventArgs (SelectionStart, SelectionEnd));
+ e.Handled = true;
break;
case Keys.End:
// set the date to the last of
the month
@@ -2073,6 +2075,7 @@
this.SetSelectionRange
(date, date);
}
this.OnDateChanged (new
DateRangeEventArgs (SelectionStart, SelectionEnd));
+ e.Handled = true;
break;
case Keys.PageUp:
// set the date to the last of
the month
@@ -2083,6 +2086,7 @@
this.SetSelectionRange
(date, date);
}
this.OnDateChanged (new
DateRangeEventArgs (SelectionStart, SelectionEnd));
+ e.Handled = true;
break;
case Keys.PageDown:
// set the date to the last of
the month
@@ -2093,6 +2097,7 @@
this.SetSelectionRange
(date, date);
}
this.OnDateChanged (new
DateRangeEventArgs (SelectionStart, SelectionEnd));
+ e.Handled = true;
break;
case Keys.Up:
// set the back 1 week
@@ -2103,6 +2108,7 @@
this.SetSelectionRange
(date, date);
}
this.OnDateChanged (new
DateRangeEventArgs (SelectionStart, SelectionEnd));
+ e.Handled = true;
break;
case Keys.Down:
// set the date forward 1 week
@@ -2113,6 +2119,7 @@
this.SetSelectionRange
(date, date);
}
this.OnDateChanged (new
DateRangeEventArgs (SelectionStart, SelectionEnd));
+ e.Handled = true;
break;
case Keys.Left:
// move one left
@@ -2123,6 +2130,7 @@
this.SetSelectionRange
(date, date);
}
this.OnDateChanged (new
DateRangeEventArgs (SelectionStart, SelectionEnd));
+ e.Handled = true;
break;
case Keys.Right:
// move one left
@@ -2133,11 +2141,11 @@
this.SetSelectionRange
(date, date);
}
this.OnDateChanged (new
DateRangeEventArgs (SelectionStart, SelectionEnd));
+ e.Handled = true;
break;
default:
break;
}
- e.Handled = true;
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches