37 |
* Not tested at this time. |
* Not tested at this time. |
38 |
*/ |
*/ |
39 |
public class LoomBindings implements Binder { |
public class LoomBindings implements Binder { |
40 |
|
public static boolean dbg = false; |
41 |
|
private static void p(String s) { System.out.println(s); } |
42 |
|
|
43 |
protected Screen screen; |
protected Screen screen; |
44 |
protected Loom loom; |
protected Loom loom; |
45 |
|
|
48 |
} |
} |
49 |
|
|
50 |
public void keystroke(String s) { |
public void keystroke(String s) { |
51 |
System.out.println("Keystroke: "+s); |
if(dbg) p("Keystroke: "+s); |
52 |
if(s.equals("Ctrl-Q")) |
if(s.equals("Ctrl-Q")) |
53 |
System.exit(0); |
System.exit(0); |
54 |
if(loom.model == null) return; |
if(loom.model == null) return; |