Author: aolk
Date: 2006-08-10 12:15:11 -0400 (Thu, 10 Aug 2006)
New Revision: 63598
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11Keyboard.cs
Log:
2006-08-10 Alexander Olk <[EMAIL PROTECTED]>
* X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
for german keyboards. Numlock state shouldn't affect the behaviour
of the Del key. Fixes bug #78291.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-08-10 15:29:45 UTC (rev 63597)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-08-10 16:15:11 UTC (rev 63598)
@@ -1,3 +1,9 @@
+2006-08-10 Alexander Olk <[EMAIL PROTECTED]>
+
+ * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
+ for german keyboards. Numlock state shouldn't affect the behaviour
+ of the Del key. Fixes bug #78291.
+
2006-08-10 Chris Toshok <[EMAIL PROTECTED]>
* ListControl.cs: remove the items.Clear line from BindDataItems,
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11Keyboard.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11Keyboard.cs
2006-08-10 15:29:45 UTC (rev 63597)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11Keyboard.cs
2006-08-10 16:15:11 UTC (rev 63598)
@@ -276,6 +276,9 @@
if (vkey == (int) VirtualKeys.VK_DECIMAL)
e.KeyEvent.keycode = XKeysymToKeycode (display,
(int) KeypadKeys.XK_KP_Decimal);
+
+ if (vkey == (int) VirtualKeys.VK_SEPARATOR)
+ e.KeyEvent.keycode = XKeysymToKeycode(display,
(int) KeypadKeys.XK_KP_Separator);
if (e.KeyEvent.keycode == 0 && vkey != (int)
VirtualKeys.VK_NONAME) {
// And I couldn't find the keycode so i
returned the vkey and was like whatever
@@ -428,8 +431,9 @@
LookupString (ref e, 0, out ks, out status);
int keysym = (int) ks;
- if ((keysym >= 0xFFAE) && (keysym <= 0xFFB9) && (keysym
!= 0xFFAF)
- && ((e.KeyEvent.state & NumLockMask)
!=0)) {
+ if (((e.KeyEvent.state & NumLockMask) != 0) &&
+ (keysym == (int)KeypadKeys.XK_KP_Separator ||
keysym == (int)KeypadKeys.XK_KP_Decimal ||
+ (keysym >= (int)KeypadKeys.XK_KP_0 && keysym <=
(int)KeypadKeys.XK_KP_9))) {
// Only the Keypad keys 0-9 and . send
different keysyms
// depending on the NumLock state
return nonchar_key_vkey [keysym & 0xFF];
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches