ShortcutListener - Function keys (F1 to F12 )

Hi everybody,

My implementation of ShortcutListener wont get triggered if the user uses a function key.

I know it depends on the os and on the browser. I have also a “map” of shortcuts that should work on the browser found within this thread
Shortcut thread

None of the key (f1-f12) do work, neither on ie7 nor on firefox.

So maybe i did something wrong. Here is my code.


public class ShortcutExample extends Panel
{

  private static final long serialVersionUID = 2784189551499719640L;

  public ShortcutExample()
  {
    this.addAction(new ShortcutListener("Function Key",
        KeyCode.F8, null)
    {
      private static final long serialVersionUID = 2013683627385083080L;

      @Override
      public void handleAction(Object sender, Object target)
      {
        System.out.println("Juhuuu, it's working");
      }
    });
  }

}

Is there someone who managed to use one or the other function short cut together with vaadin?

Hi,

I quickly looked at this, and it seems like a bug, actually - the client is not recognizing function keys properly. I also seem to recall that this has worked before, so I’ll check some more to see what’s going on…

Best Regards,
Marc

Added
http://dev.vaadin.com/ticket/5157

Hi Marc

Thx for your answer and the bug ticket.

I just looked a bug ticket and meanwhile it is closed. It will be fixed in Vaadin 6.4 .

Great !!

Thx for the help and fast support :slight_smile:

Best regards