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?