@@ -0,0 +1,1625 @@
+package com.vaadin.tests.components;%0A%0Aimport java.util.Arrays;%0A%0Aimport com.vaadin.event.ShortcutAction.KeyCode;%0Aimport com.vaadin.event.ShortcutAction.ModifierKey;%0Aimport com.vaadin.ui.Button;%0Aimport com.vaadin.ui.Button.ClickEvent;%0Aimport com.vaadin.ui.Select;%0Aimport com.vaadin.ui.TextField;%0A%0Apublic class FocusFromShortcutAction extends TestBase %7B%0A%0A    @Override%0A    protected void setup() %7B%0A        final Select select = new Select(%22Select%22, Arrays.asList(%22Option 1%22,%0A                %22Option 2%22));%0A        final TextField text = new TextField(%22Text%22);%0A%0A        addComponent(select);%0A        addComponent(text);%0A        Button focusText = new Button(%22Focus text%22, new Button.ClickListener() %7B%0A            public void buttonClick(ClickEvent event) %7B%0A                text.focus();%0A            %7D%0A        %7D);%0A        focusText.setClickShortcut(KeyCode.T, ModifierKey.ALT);%0A%0A        addComponent(focusText);%0A        Button focusSelect = new Button(%22Focus select%22,%0A                new Button.ClickListener() %7B%0A                    public void buttonClick(ClickEvent event) %7B%0A                        select.focus();%0A                    %7D%0A                %7D);%0A        focusSelect.setClickShortcut(KeyCode.S, ModifierKey.ALT);%0A        addComponent(focusSelect);%0A    %7D%0A%0A    @Override%0A    protected String getDescription() %7B%0A        return %22The option drop down of the Focus select should not be opened when the %5C%22Focus select%5C%22 button is triggered by clicking it with the mouse or with the associated shortcut key Alt + S%22;%0A    %7D%0A%0A    @Override%0A    protected Integer getTicketNumber() %7B%0A        return Integer.valueOf(7539);%0A    %7D%0A%0A%7D%0A

Test application for #7539