changeset 49:d29ad8445461

Re #86: Complete GTK# UI * Make keypad "enter" work for confirming unit name
author IBBoard <dev@ibboard.co.uk>
date Sun, 15 Aug 2010 15:57:25 +0000
parents 23238d998535
children d2f4fcc28254
files Widgets/UnitDisplayWidget.cs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Widgets/UnitDisplayWidget.cs	Sun Aug 15 14:34:06 2010 +0000
+++ b/Widgets/UnitDisplayWidget.cs	Sun Aug 15 15:57:25 2010 +0000
@@ -130,7 +130,7 @@
 		[GLib.ConnectBefore ()]
 		protected virtual void OnUnitNameKeyPress (object o, Gtk.KeyPressEventArgs args)
 		{
-			if (args.Event.Key == Gdk.Key.Return)
+			if (args.Event.Key == Gdk.Key.Return || args.Event.Key == Gdk.Key.KP_Enter)
 			{
 				SetNewUnitName();
 			}