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 public void doKeyPressed(KeyEvent e); 015 /** 016 * This is called when key press event is actually released 017 * (no fake events while holding key) 018 */ 019 public void doKeyReleased(KeyEvent e); 020}