001// License: GPL. For details, see LICENSE file. 002package org.openstreetmap.josm.gui.util; 003 004import java.awt.event.KeyEvent; 005 006/** 007 * Interface that is used to detect key pressing and releasing 008 */ 009public interface KeyPressReleaseListener { 010 /** 011 * This is called when key press event is actually pressed 012 * (no fake events while holding key) 013 */ 014 void doKeyPressed(KeyEvent e); 015 016 /** 017 * This is called when key press event is actually released 018 * (no fake events while holding key) 019 */ 020 void doKeyReleased(KeyEvent e); 021}