public KeyBindingExample(){
super( new BoundWidgetTypeFactory(), null);
Button keyButton = new Button();
keyButton.setHTML("<u>S</u>ave");
keyButton.setKeyBinding(new KeyBinding('S', false, true, false));
keyButton.setAction(new Action() {
public void execute(BoundWidget model) {
Window.alert("SAVE!");
}
});