comparison Widgets/UnitDisplayWidget.cs @ 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 dafbd432ca23
comparison
equal deleted inserted replaced
48:23238d998535 49:d29ad8445461
128 } 128 }
129 129
130 [GLib.ConnectBefore ()] 130 [GLib.ConnectBefore ()]
131 protected virtual void OnUnitNameKeyPress (object o, Gtk.KeyPressEventArgs args) 131 protected virtual void OnUnitNameKeyPress (object o, Gtk.KeyPressEventArgs args)
132 { 132 {
133 if (args.Event.Key == Gdk.Key.Return) 133 if (args.Event.Key == Gdk.Key.Return || args.Event.Key == Gdk.Key.KP_Enter)
134 { 134 {
135 SetNewUnitName(); 135 SetNewUnitName();
136 } 136 }
137 } 137 }
138 138