Files
gzz-mirror/Java/ZZKeyBindings0.java
2026-09-14 20:19:29 -04:00

46 lines
1.4 KiB
Java

/*
ZZKeyBindings0.java
*
* Copyright (c) 1999, Ted Nelson and Tuomas Lukka
*
* You may use and distribute under the terms of either the GNU Lesser
* General Public License, either version 2 of the license or,
* at your choice, any later version. Alternatively, you may use and
* distribute under the terms of the XPL.
*
* See the LICENSE.lgpl and LICENSE.xpl files for the specific terms of
* the licenses.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the README
* file for more details.
*
*/
/*
* Written by Tuomas Lukka
*/
package org.gzigzag;
import java.awt.event.*;
/** A very simple keybindings class which is hardcoded for the cursor keys.
* Does nothing else. OBSOLETE.
*/
/*
public class ZZKeyBindings0 implements ZZKeyBindings {
public static final String rcsid = "$Id: ZZKeyBindings0.java,v 1.7 2000/09/19 10:31:58 ajk Exp $";
ZZCell current;
public void perform(KeyEvent k, ZZView v) {
// XXX Hardcoded - should update automatically from the structure..
switch(k.getKeyCode()) {
case k.VK_UP: v.move(0,-1); break;
case k.VK_DOWN: v.move(0,1); break;
case k.VK_LEFT: v.move(-1,0); break;
case k.VK_RIGHT: v.move(1,0); break;
}
}
}
*/
class LIJFSELFJLISEFJLSEFSF { }