summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/KeyDownEvent.java
blob: 5ba9ffb580b0b9c128e4e80a3920627ab92bb87b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
package NET.worlds.scape;

public class KeyDownEvent extends KeyEvent {
   public KeyDownEvent(int time, WObject target, char key) {
      super(time, null, target, key);
   }

   @Override
   public boolean deliver(Object o) {
      return o instanceof KeyDownHandler && ((KeyDownHandler)o).handle(this) ? true : super.deliver(o);
   }
}