source: josm/trunk/src/org/openstreetmap/josm/gui/util/KeyPressReleaseListener.java@ 7321

Last change on this file since 7321 was 7219, checked in by akks, 10 years ago

missing files for two last commits

File size: 587 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.util;
3
4import java.awt.event.KeyEvent;
5
6/**
7 * Interface that is used to detect key pressing and releasing
8 */
9public interface KeyPressReleaseListener {
10 /**
11 * This is called when key press event is actually pressed
12 * (no fake events while holding key)
13 */
14 public void doKeyPressed(KeyEvent e);
15 /**
16 * This is called when key press event is actually released
17 * (no fake events while holding key)
18 */
19 public void doKeyReleased(KeyEvent e);
20}
Note: See TracBrowser for help on using the repository browser.