Commit 643ec1a 1 parent a8ba745 commit 643ec1a Copy full SHA for 643ec1a
File tree 1 file changed +6
-0
lines changed
src/test/java/org/vaadin/tinymce
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1
1
package org .vaadin .tinymce ;
2
2
3
+ import com .vaadin .flow .component .Key ;
4
+ import com .vaadin .flow .component .KeyModifier ;
3
5
import com .vaadin .flow .component .button .Button ;
4
6
import com .vaadin .flow .component .dialog .Dialog ;
5
7
import com .vaadin .flow .component .orderedlayout .VerticalLayout ;
6
8
import com .vaadin .flow .router .PreserveOnRefresh ;
7
9
import com .vaadin .flow .router .Route ;
10
+ import org .vaadin .firitin .components .button .VButton ;
8
11
9
12
@ Route
10
13
@ PreserveOnRefresh
@@ -18,6 +21,9 @@ public PreserveOnRefreshBug27() {
18
21
tinyMce .setValue ("<h2>Hallo Leute,</h2>" );
19
22
dialog .add (tinyMce );
20
23
dialog .add (new Button ("Cancel" , e -> dialog .close ()));
24
+ VButton button = new VButton ("Focus (CTRL-I)" , e -> tinyMce .focus ());
25
+ button .addClickShortcut (Key .of ("i" ), KeyModifier .CONTROL );
26
+ dialog .add (button );
21
27
Button open = new Button ("Open" , e -> dialog .open ());
22
28
Button enable = new Button ("Disable" );
23
29
enable .addClickListener (e -> {
You can’t perform that action at this time.
0 commit comments