[Mono-bugs] [Bug 78404][Min] New - TextBox: Support keyboard switch from/to RtoL/LtoR

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon May 15 07:52:35 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by atsushi at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=78404

--- shadow/78404	2006-05-15 07:52:35.000000000 -0400
+++ shadow/78404.tmp.12397	2006-05-15 07:52:35.000000000 -0400
@@ -0,0 +1,59 @@
+Bug#: 78404
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: atsushi at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: TextBox: Support keyboard switch from/to RtoL/LtoR
+
+Currently MWF does not support text input switch from and to RtoL/LtoR by
+hitting CTRL + Left Shift (LtoR) or CTRL + Right Shift (RtoL).
+
+Here I reuse example code in #78403:
+
+using System;
+using System.Windows.Forms;
+
+public class Test : Form
+{
+        public static void Main ()
+        {
+                Application.Run (new Test ());
+        }
+
+        public Test ()
+        {
+                TextBox tb = new TextBox ();
+                tb.Text = "sample";
+                tb.TextAlign = HorizontalAlignment.Right;
+                Controls.Add (tb);
+                Button b = new Button ();
+                b.Top = 20;
+                b.Text = "to right";
+                b.Click += delegate (object o, EventArgs e) {
+                        Console.WriteLine (tb.TextAlign);
+                        tb.TextAlign = HorizontalAlignment.Left;
+                };
+                Controls.Add (b);
+        }
+}
+
+
+Additional Information:
+
+Incomplete patch being attached. To make it possible, I had to add
+GetKeyState() in XplatUI. However, I'm not sure if it is possible to detect
+that pushed shift key is left or right.
+
+The patch seems incomplete because even on Windows it does not seem to work
+l/r shift detection...


More information about the mono-bugs mailing list