ClickShortcut fires ClickListener on disabled Button

Hello guys,

im not shure if it is a bug or an understanding problem:
the following example shows my problem:

	Button b=new Button("test");
	b.addListener(new Button.ClickListener() {
		public void buttonClick(ClickEvent event) {
			System.out.println("Button enabled: "+event.getButton().isEnabled());

After pressing the Enter key the output in my Console is:

Button enabled: false

In my opinion this is not correct, because the listener should not be fired when Button is disabled!

I’m wrong?

I’v developed an application with Vaadin 6.3.4.

I have to agree that setEnabled(false) should disable the shortcut as well. can you make a ticket about this at


Ticket 5339

this was my first Thread and Ticket :wink: