Project

General

Profile

Revision 5ccedc9e

ID5ccedc9e1fc292dc02f439d0c467f0fba9b7d2d6
Parent b19b631a
Child f7882bff

Added by Andreas Kohlbecker about 2 years ago

fix #7257 keyboard shortcut 'enter' for login button

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/LoginViewBean.java
10 10

  
11 11
import org.vaadin.spring.events.EventScope;
12 12

  
13
import com.vaadin.event.ShortcutAction.KeyCode;
13 14
import com.vaadin.navigator.View;
14 15
import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent;
15 16
import com.vaadin.spring.annotation.SpringView;
......
53 54
        setCompositionRoot(root);
54 55

  
55 56
        loginDialog.getLoginButton().addClickListener(e -> handleLoginClick(e));
57
        loginDialog.getLoginButton().setClickShortcut(KeyCode.ENTER);
56 58
        loginDialog.getRegisterButton().addClickListener(e -> getViewEventBus().publish(EventScope.UI, this, new RegisterNewUserEvent(e)));
57 59
        loginDialog.getSendOnetimeLogin().addClickListener(e -> getViewEventBus().publish(EventScope.UI, this, new PasswordRevoveryEvent(e)));
58 60
        // NOTE: null viewName will be replaced by the default view name in NavigationManagerBean

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)