# HG changeset patch # User IBBoard # Date 1281887845 0 # Node ID d29ad8445461ecdac50fc543ea84f07a957384e4 # Parent 23238d99853599a3112c5a521f5a5a0f4c28424d Re #86: Complete GTK# UI * Make keypad "enter" work for confirming unit name diff -r 23238d998535 -r d29ad8445461 Widgets/UnitDisplayWidget.cs --- 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(); }