2008-08-27 Miguel de Icaza <miguel@novell.com>
authorMiguel de Icaza <miguel@gnome.org>
Wed, 27 Aug 2008 20:42:48 +0000 (20:42 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Wed, 27 Aug 2008 20:42:48 +0000 (20:42 -0000)
* TermInfoDriver.cs: Adds support for the Insert and Delete keys
on the keyboard.

svn path=/trunk/mcs/; revision=111739

mcs/class/corlib/System/ChangeLog
mcs/class/corlib/System/TermInfoDriver.cs

index 22fee7e7ed6ec8184f28ca638f3daa0e85b4cfc9..b4a977cd91f548cf2532ec8ae34d98dbc5b26bbb 100644 (file)
@@ -1,3 +1,8 @@
+2008-08-27  Miguel de Icaza  <miguel@novell.com>
+
+       * TermInfoDriver.cs: Adds support for the Insert and Delete keys
+       on the keyboard.   
+
 2008-08-26  Miguel de Icaza  <miguel@novell.com>
 
        * New console features are used by gmcs.exe, but since we only
index 782d68d201472485708af76dbe45a73c366195e8..fee537088ef67bcf016ea77c1bb123598dce539b 100644 (file)
@@ -1271,6 +1271,11 @@ namespace System {
                        keymap [TermInfoStrings.KeyF22] = new ConsoleKeyInfo ('\0', ConsoleKey.F22, false, false, false);
                        keymap [TermInfoStrings.KeyF23] = new ConsoleKeyInfo ('\0', ConsoleKey.F23, false, false, false);
                        keymap [TermInfoStrings.KeyF24] = new ConsoleKeyInfo ('\0', ConsoleKey.F24, false, false, false);
+
+
+                       // These were previously missing:
+                       keymap [TermInfoStrings.KeyDc] = new ConsoleKeyInfo ('\0', ConsoleKey.Delete, false, false, false);
+                       keymap [TermInfoStrings.KeyIc] = new ConsoleKeyInfo ('\0', ConsoleKey.Insert, false, false, false);
                }
 
                void InitKeys ()
@@ -1338,6 +1343,11 @@ namespace System {
                        AddStringMapping (TermInfoStrings.KeyF22);
                        AddStringMapping (TermInfoStrings.KeyF23);
                        AddStringMapping (TermInfoStrings.KeyF24);
+
+                       // These were missing
+                       AddStringMapping (TermInfoStrings.KeyDc);
+                       AddStringMapping (TermInfoStrings.KeyIc);
+                       
                        rootmap.Sort ();
                        initKeys = true;
                }