@@ -9,9 +9,8 @@ { this.solver = new Solver(g); setup_size(g.map.W, g.map.H); setup_resources(); - setup_keyhandling(); draw(g); } private void delegate(char c) fn; @@ -26,8 +25,10 @@ fn(solver.single_step()); }; t.start(); this.closing ~= (Form f,CancelEventArgs c){t.stop();}; + } else { + setup_keyhandling(); } Application.run(this); }