Added help popup, Ctrl-Left and Right cursor movement by word
[Nebula.git] / main.cs
diff --git a/main.cs b/main.cs
index f9570c5..1978b5f 100644 (file)
--- 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: