1 /******************************************************************************* 2 * Copyright (c) 2000, 2008 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 * Port to the D programming language: 11 * Frank Benoit <benoit@tionex.de> 12 *******************************************************************************/ 13 module org.eclipse.swt.custom.VerifyKeyListener; 14 15 16 import org.eclipse.swt.events.VerifyEvent; 17 import org.eclipse.swt.internal.SWTEventListener; 18 19 /** 20 * Classes which implement this interface provide a method 21 * that deals with the event that is generated when a 22 * key is pressed. 23 * 24 * @see VerifyEvent 25 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> 26 */ 27 public interface VerifyKeyListener : SWTEventListener { 28 /** 29 * The following event fields are used:<ul> 30 * <li>event.character is the character that was typed (input)</li> 31 * <li>event.keyCode is the key code that was typed (input)</li> 32 * <li>event.stateMask is the state of the keyboard (input)</li> 33 * <li>event.doit is processed or not (output)</li> 34 * </ul> 35 * @param event the verify event 36 * @see VerifyEvent 37 */ 38 public void verifyKey (VerifyEvent event); 39 }