X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;ds=sidebyside;f=main.cs;h=1978b5f6ba2e357b5581f03811dd904cc5c9f2d2;hb=c87b4593cee7ebd588e0fe8541a3067061d02cb0;hp=f9570c56719f9b2431eb36c72cbf5d04f2abe66f;hpb=822c67be52521bd601cd01b66974bb6c0df967bf;p=Nebula.git diff --git a/main.cs b/main.cs index f9570c5..1978b5f 100644 --- a/main.cs +++ b/main.cs @@ -31,6 +31,7 @@ public class Nebula { window.ShowAll(); window.KeyPressEvent += new KeyPressEventHandler(KeyPress); + window.KeyReleaseEvent += display.KeyRelease; SelectInput(display); window.DeleteEvent += delegate(object o, DeleteEventArgs e) { Application.Quit(); @@ -65,7 +66,7 @@ public class Nebula { } SelectInput(display); stack.Remove(input); - input.Destroy(); + input = null; }; break; case Gdk.Key.s: