for (Iterator i = listeners.iterator(); i.hasNext();) { KeyboardListener l = (KeyboardListener) i.next(); if (event.isKeyPressed()) { l.keyPressed(event); } else if (event.isKeyReleased()) { l.keyReleased(event); } if (event.isConsumed()) { break; } } }
for (Iterator i = kbListeners.iterator(); i.hasNext();) { KeyboardListener l = (KeyboardListener) i.next(); if (event.isKeyPressed()) { l.keyPressed(event); } else if (event.isKeyReleased()) { l.keyReleased(event); } if (event.isConsumed()) { break; } } }
	protected void dispatchEvent(KeyboardEvent event) {		//Syslog.debug("Dispatching event to " + listeners.size());		for (Iterator i = listeners.iterator(); i.hasNext();) {			KeyboardListener l = (KeyboardListener) i.next();			if (event.isKeyPressed()) {				l.keyPressed(event);			} else if (event.isKeyReleased()) {				l.keyReleased(event);			}			if (event.isConsumed()) {				break;			}		}	}